freebsd-skq/contrib/elftoolchain
Ed Maste aadb68849f elfcopy: copy raw (untranslated) contents to binary output
Previously elfcopy used elf_getdata to obtain data from ELF sections
being copied to binary output, but elf_getdata returns data that has
been translated - that is, data is in host byte order. When the host and
target differ in endianness (e.g., converting a big-endian MIPS ELF
object to binary on an x86 host) this resulted in byte-swapped data in
certain sections such as .dynamic.

Instead use elf_rawdata to keep data in the original, target endianness.

Reported by:	Hiroki Mori <yamori83@yahoo.co.jp>, Bill Yuan
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2018-01-02 14:07:55 +00:00
..
addr2line
ar
brandelf
common
cxxfilt revert r308465: c++filt: flush output after newline 2017-05-01 01:56:11 +00:00
elfcopy elfcopy: copy raw (untranslated) contents to binary output 2018-01-02 14:07:55 +00:00
elfdump Update to ELF Tool Chain snapshot at r3561 2017-06-25 22:39:28 +00:00
libdwarf
libelf o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
libelftc Update to ELF Tool Chain snapshot at r3561 2017-06-25 22:39:28 +00:00
libpe
nm nm: document 'r' symbol type 2017-05-22 01:10:12 +00:00
readelf readelf: report byte size for DT_PREINIT_ARRAYSZ 2017-12-26 18:10:34 +00:00
size
strings