diff options
author | emaste <emaste@FreeBSD.org> | 2014-09-02 15:49:33 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-09-02 15:49:33 +0000 |
commit | 1c035447bc46287b0b51971639f7706c6725cfae (patch) | |
tree | 92d2a13bf6ee5f22c3615e591f0442a76452ed51 /sys/sys/elf_common.h | |
parent | c13a1bd64376737cbf7022b2d44d996c858e9244 (diff) | |
download | FreeBSD-src-1c035447bc46287b0b51971639f7706c6725cfae.zip FreeBSD-src-1c035447bc46287b0b51971639f7706c6725cfae.tar.gz |
MFC elfdump improvements
r269092: Improve section type reporting
The SHT range 0x70000000-0x7fffffff is processor-specific. Pass the
ELF machine type header to sh_types so the section header type name can
be reported correctly for the given processor.
For all ranges report the actual value for unknown types.
Add MIPS-specific type SHT_MIPS_OPTIONS.
r269143 (andreast): Further improvements on elfdump, to follow up r269092:
- Add ARM specific section header types.
- Add SHT_GNU_HASH section header type.
- Improve reporting of undefined tags in d_tags.
- Add DT_GNU_HASH tag.
Reviewed by: emaste
r269337: add EM_AARCH64 64-bit ARM machine architecture
r269338: use existing ELF constants where available
r270303: Rename DT_FEATURE_1 to DT_FEATURE
This provides a minor cleanup in elfdump; there are otherwise no
consumers in the tree. Old SUN documentation can be found for either
variant, but GNU binutils switched to DT_FEATURE around 2000.
r270304: Remove extraneous _SUNW_ in reported DT_ names
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/sys/elf_common.h')
-rw-r--r-- | sys/sys/elf_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h index 000035c..d34ee9b 100644 --- a/sys/sys/elf_common.h +++ b/sys/sys/elf_common.h @@ -237,6 +237,7 @@ typedef struct { #define EM_ARCA 109 /* Arca RISC Microprocessor. */ #define EM_UNICORE 110 /* Microprocessor series from PKU-Unity Ltd. and MPRC of Peking University */ +#define EM_AARCH64 183 /* AArch64 (64-bit ARM) */ /* Non-standard or deprecated. */ #define EM_486 6 /* Intel i486. */ @@ -424,7 +425,7 @@ typedef struct { #define DT_PLTPADSZ 0x6ffffdf9 /* pltpadding size */ #define DT_MOVEENT 0x6ffffdfa /* move table entry size */ #define DT_MOVESZ 0x6ffffdfb /* move table size */ -#define DT_FEATURE_1 0x6ffffdfc /* feature holder */ +#define DT_FEATURE 0x6ffffdfc /* feature holder */ #define DT_POSFLAG_1 0x6ffffdfd /* flags for DT_* entries, effecting */ /* the following DT_* entry. */ /* See DF_P1_* definitions */ |