diff options
| author | Andrew Chambers <[email protected]> | 2021-10-02 17:47:20 +1300 |
|---|---|---|
| committer | Andrew Chambers <[email protected]> | 2021-10-02 17:47:20 +1300 |
| commit | d6f54e132449647acd72d264bfd9f42a1fc56738 (patch) | |
| tree | d8aa48945989e9508e2d80a3a565e6ed947f304b | |
| parent | d926d91bd9b7afd654e54b59cdd19006702dc0e2 (diff) | |
Remove dead code.
| -rw-r--r-- | main.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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++) { |
