mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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 |
||
|---|---|---|
| .. | ||
| archive.c | ||
| ascii.c | ||
| binary.c | ||
| elfcopy.1 | ||
| elfcopy.h | ||
| main.c | ||
| Makefile | ||
| mcs.1 | ||
| os.FreeBSD.mk | ||
| pe.c | ||
| sections.c | ||
| segments.c | ||
| strip.1 | ||
| symbols.c | ||