diff options
Diffstat (limited to 'output')
-rw-r--r-- | output/outelf.h | 9 | ||||
-rw-r--r-- | output/outelf32.c | 8 | ||||
-rw-r--r-- | output/outelf64.c | 8 |
3 files changed, 9 insertions, 16 deletions
diff --git a/output/outelf.h b/output/outelf.h index b47f3177..8ab76b0d 100644 --- a/output/outelf.h +++ b/output/outelf.h @@ -80,6 +80,15 @@ extern const struct elf_known_section elf_known_sections[]; #define sec_stabstr (nsections-2) #define sec_rel_stab (nsections-1) +/* stabs symbol table format */ +struct stabentry { + uint32_t n_strx; + uint8_t n_type; + uint8_t n_other; + uint16_t n_desc; + uint32_t n_value; +}; + /* dwarf */ #define sec_debug_aranges (nsections-10) #define sec_rela_debug_aranges (nsections-9) diff --git a/output/outelf32.c b/output/outelf32.c index 14df371f..a85acf04 100644 --- a/output/outelf32.c +++ b/output/outelf32.c @@ -142,14 +142,6 @@ static struct SAA *elf_build_symtab(int32_t *, int32_t *); static struct SAA *elf_build_reltab(int32_t *, struct Reloc *); static void add_sectname(char *, char *); -struct stabentry { - uint32_t n_strx; - uint8_t n_type; - uint8_t n_other; - uint16_t n_desc; - uint32_t n_value; -}; - struct erel { int offset, info; }; diff --git a/output/outelf64.c b/output/outelf64.c index e6cd8d86..9807c2a2 100644 --- a/output/outelf64.c +++ b/output/outelf64.c @@ -143,14 +143,6 @@ static struct SAA *elf_build_symtab(int32_t *, int32_t *); static struct SAA *elf_build_reltab(uint64_t *, struct Reloc *); static void add_sectname(char *, char *); -struct stabentry { - uint32_t n_strx; - uint8_t n_type; - uint8_t n_other; - uint16_t n_desc; - uint32_t n_value; -}; - struct erel { int offset, info; }; |