aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-02 17:47:20 +1300
committerAndrew Chambers <[email protected]>2021-10-02 17:47:20 +1300
commitd6f54e132449647acd72d264bfd9f42a1fc56738 (patch)
treed8aa48945989e9508e2d80a3a565e6ed947f304b
parentd926d91bd9b7afd654e54b59cdd19006702dc0e2 (diff)
Remove dead code.
-rw-r--r--main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/main.c b/main.c
index 0e7405c..9053b8f 100644
--- a/main.c
+++ b/main.c
@@ -92,14 +92,6 @@ void outelf(void) {
ehdr.e_shnum = nsections;
ehdr.e_shstrndx = 1;
offset = sizeof(Elf64_Shdr) * nsections;
- /*
- textsec->shdr.sh_offset = offset;
- textsec->shdr.sh_size = 0;
- offset += textsec->shdr.sh_size * textsec->shdr.sh_entsize;
- symstrsec->shdr.sh_size = 0;
- symstrsec->shdr.sh_offset = offset;
- offset += symstrsec->shdr.sh_size * symstrsec->shdr.sh_entsize;
- */
out((uint8_t *)&ehdr, sizeof(ehdr));
for (i = 0; i < nsections; i++) {