emaste eec2e2505f 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
..
2017-11-02 20:08:00 +00:00
2017-05-31 19:37:23 +00:00
2017-09-17 19:14:38 +00:00
2017-12-10 09:17:21 +00:00
2017-12-12 17:34:35 +00:00
2017-10-01 00:40:23 +00:00
2017-07-03 19:49:25 +00:00
2017-02-19 17:37:16 +00:00
2017-08-03 15:47:42 +00:00
2017-11-29 00:46:36 +00:00
2017-02-06 08:49:57 +00:00
2017-03-23 22:06:06 +00:00
2017-05-23 09:29:05 +00:00
2017-05-05 13:31:25 +00:00
2017-01-30 16:32:53 +00:00
2017-06-28 09:22:45 +00:00
2017-02-28 23:42:47 +00:00
2017-12-06 02:21:11 +00:00
2017-03-25 14:14:11 +00:00
2017-06-01 19:21:30 +00:00
2017-02-28 23:42:47 +00:00
2017-10-28 18:54:45 +00:00
2017-06-03 18:21:50 +00:00
2017-09-10 01:25:15 +00:00