freebsd-dev/contrib/elftoolchain/elfcopy
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
..
archive.c Update to ELF Tool Chain r3490 2016-08-31 15:05:04 +00:00
ascii.c Update to ELF Tool Chain r3490 2016-08-31 15:05:04 +00:00
binary.c elfcopy: copy raw (untranslated) contents to binary output 2018-01-02 14:07:55 +00:00
elfcopy.1 elfcopy: document --strip-symbols=filename in the man page 2017-04-20 13:57:53 +00:00
elfcopy.h Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
main.c elfcopy: allow empty symbol list files 2017-04-24 14:51:53 +00:00
Makefile Update ELF Tool Chain to upstream rev 3400 2016-02-12 20:54:02 +00:00
mcs.1
os.FreeBSD.mk Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
pe.c Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00
sections.c Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
segments.c Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
strip.1
symbols.c Update ELF Tool Chain to upstream r3520 2017-04-17 23:56:48 +00:00