diff options
author | Paul Eggert <[email protected]> | 2011-03-16 19:09:36 -0700 |
---|---|---|
committer | Paul Eggert <[email protected]> | 2011-03-16 19:09:36 -0700 |
commit | 73366a004b663bed19b9bc9b83e8843c836db83f (patch) | |
tree | b1a601cbb14d20b09dccada0a48265215607f8e2 /src | |
parent | 9ae7151257f2457c0a6d89fb2b97f59fb18f1b96 (diff) |
* unexelf.c (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 1 | ||||
-rw-r--r-- | src/unexelf.c | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8832388994..5abc9b6647 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,6 +4,7 @@ to avoid gcc -Wbad-function-cast warning. Use a different way to cause a compilation error if anyone uses n rather than nn, a way that does not involve shadowing. + (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused. * deps.mk (unexalpha.o): Remove; unused. diff --git a/src/unexelf.c b/src/unexelf.c index 3e664307d5..b58c78501b 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -520,10 +520,6 @@ typedef struct { # define ElfW(type) ElfExpandBitsW (ELFSIZE, type) #endif -#ifndef ELF_BSS_SECTION_NAME -#define ELF_BSS_SECTION_NAME ".bss" -#endif - /* Get the address of a particular section or program header entry, * accounting for the size of the entries. */ @@ -555,8 +551,6 @@ typedef struct { (*(ElfW(Shdr) *) ((byte *) old_section_h + old_file_h->e_shentsize * (n))) #define NEW_SECTION_H(n) \ (*(ElfW(Shdr) *) ((byte *) new_section_h + new_file_h->e_shentsize * (n))) -#define OLD_PROGRAM_H(n) \ - (*(ElfW(Phdr) *) ((byte *) old_program_h + old_file_h->e_phentsize * (n))) #define NEW_PROGRAM_H(n) \ (*(ElfW(Phdr) *) ((byte *) new_program_h + new_file_h->e_phentsize * (n))) |