History log of /freebsd-10-stable/usr.bin/elfdump/elfdump.c
Revision Date Author Comments
# 307834 23-Oct-2016 emaste

MFC r307520: elfdump: correct DT_AUXILIARY / DT_USED / DT_FILTER definitions

r109332 introduced these three as DT_SUNW_*. Update to the correct
names already used elsewhere in FreeBSD and the Sun "Linker and
Libraries Guide"


# 294450 20-Jan-2016 emaste

MFC r288083, r288138: elfdump: report MIPS-specific ELF section types


# 288173 24-Sep-2015 emaste

MFC r282916: Add ELF machine EM_IAMCU, 32-bit Intel MCU

It is e_machine 6, which was previously reserved for 486.


# 288171 24-Sep-2015 emaste

MFC r285841: Add RISC-V ELF machine type definition

EM_RISCV is now officially registered as e_machine 243.

Sponsored by: The FreeBSD Foundation


# 275945 19-Dec-2014 brueffer

MFC: r274960 (slightly modified)

Limit descriptors and enter capability mode. Since the header was renamed in HEAD, this
commit includes sys/capability.h.

Differential: D1009
Reviewed by: jonathan, pjd
Relnotes: yes


# 270969 02-Sep-2014 emaste

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


# 267958 27-Jun-2014 emaste

MFC r265613, r267649: Handle ELF files with 65280 or more sections

If e_shnum or e_shstrndx are at least SHN_LORESERVE (0xff00) then an
escape value is used to indicate that the actual value is found in one
of section 0's fields.

Don't dump core when the ELF file has no section headers. The ELF
core files created by gcore are among those.


# 261002 22-Jan-2014 jhibbits

MFC r260621

Add missing EM_PPC64 to e_machine header display.


# 288173 24-Sep-2015 emaste

MFC r282916: Add ELF machine EM_IAMCU, 32-bit Intel MCU

It is e_machine 6, which was previously reserved for 486.


# 288171 24-Sep-2015 emaste

MFC r285841: Add RISC-V ELF machine type definition

EM_RISCV is now officially registered as e_machine 243.

Sponsored by: The FreeBSD Foundation


# 275945 19-Dec-2014 brueffer

MFC: r274960 (slightly modified)

Limit descriptors and enter capability mode. Since the header was renamed in HEAD, this
commit includes sys/capability.h.

Differential: D1009
Reviewed by: jonathan, pjd
Relnotes: yes


# 270969 02-Sep-2014 emaste

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


# 267958 27-Jun-2014 emaste

MFC r265613, r267649: Handle ELF files with 65280 or more sections

If e_shnum or e_shstrndx are at least SHN_LORESERVE (0xff00) then an
escape value is used to indicate that the actual value is found in one
of section 0's fields.

Don't dump core when the ELF file has no section headers. The ELF
core files created by gcore are among those.


# 261002 22-Jan-2014 jhibbits

MFC r260621

Add missing EM_PPC64 to e_machine header display.