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.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi Daniel,
Thanks for tracking this down!
I've committed an alternative fix for this in r219543. I believe your fix would have worked equally well, but I want to keep the endian-aware read/write style consistent across RuntimeDyldMachO.
Could you let me know if r219543 fixes the failures you're seeing.
Cheers,
Lang.
Comment Actions
Thanks, r219543 fixes the test. The remaining two failures (MachO_ARM_PIC_relocations.s and MachO_i386_eh_frame.s) are looking like the same kind of thing but I haven't located the origin of the endian-reversed value yet.