[PATCH] [x86] Convert little endian Addend to native endian when reading MachO section data.

Daniel Sanders daniel.sanders at imgtec.com
Thu Oct 9 06:33:06 PDT 2014


This patch fixes the MachO_i386_DynNoPIC_relocations.s test on a big-endian Mips
host by replacing two memcpy's with a new version of support::endian::read<>()
that reads the specified number of bytes and converts it to the native endian.

http://reviews.llvm.org/D5702

Files:
  include/llvm/Support/Endian.h
  lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5702.14651.patch
Type: text/x-patch
Size: 2447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141009/a77dd558/attachment.bin>


More information about the llvm-commits mailing list