summaryrefslogtreecommitdiff
path: root/elf.myr
diff options
context:
space:
mode:
Diffstat (limited to 'elf.myr')
-rw-r--r--elf.myr11
1 files changed, 1 insertions, 10 deletions
diff --git a/elf.myr b/elf.myr
index 1e25536..fd6fda3 100644
--- a/elf.myr
+++ b/elf.myr
@@ -46,7 +46,7 @@ const emitelf = {lnk
std.fatal("could not open output: {}\n", e)
| `std.Ok f:
header(f, lnk)
- //ident(f, lnk)
+ //brand(f, lnk)
//strtab(f, lnk)
sdata(f, lnk, lnk.text, Align)
sdata(f, lnk, lnk.data, Align)
@@ -79,7 +79,6 @@ const header = {f, lnk
w16(f, 0)
phdrs(f, lnk)
- //shdr(f, lnk)
}
const phdrs = {f, lnk
@@ -109,14 +108,6 @@ const sdata = {f, lnk, buf, align
wstr(f, buf)
}
-//const sectionheader = {f, lnk
-// /* text section */
-// /* data section */
-// /* rodata section */
-// /* bss section */
-// /* strtab */
-//}
-
const wstr = {f, s; check(bio.write(f, s))}
const w8 = {f, v; check(bio.putb(f, v))}
const w16 = {f, v; check(bio.putle16(f, v))}