freebsd-dev/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 Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
ar Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
brandelf Use the in-tree sys/elf_common.h to build libelftc. 2016-06-05 23:05:14 +00:00
common Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
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 Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
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 Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
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 Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
strings Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00