SVNews r327489

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-01-02 14:07:55 - r327489 by emaste (Ed Maste)

Complete list of files affected by revision r327489:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/contrib/elftoolchain/elfcopy/binary.c  

Commit message:

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

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 1 ms, 1 file printed. Current time is 2018-01-21 22:28:38. All times are in UTC/GMT.