search for: machofileabstract

Displaying 4 results from an estimated 4 matches for "machofileabstract".

2020 May 26
2
Emitting aligned nlist_64 structures for Mach-O in MC
...nces the pointer [5]. As far as I can see, this will invoke UB for an unaligned int64, unless ld64 is built against a different version of OSReadLittleEndian, or unless I’m missing something. [1] https://github.com/apple-opensource/ld64/blob/fd3feabb0a1eb18ab5d7910f3c3a5eed99cef6ab/src/abstraction/MachOFileAbstraction.hpp#L1283-L1304 [2] https://github.com/apple-opensource/ld64/blob/fd3feabb0a1eb18ab5d7910f3c3a5eed99cef6ab/src/abstraction/FileAbstraction.hpp#L137 [3] https://github.com/apple-opensource/ld64/blob/fd3feabb0a1eb18ab5d7910f3c3a5eed99cef6ab/src/abstraction/FileAbstraction.hpp#L96 [4] https://githu...
2012 Jan 15
0
[LLVMdev] Off Topic: Building ld
Ben, Thanks for your help! > http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h Yep, as Joe Ranieri pointed out, I had to tell MachOFileAbstraction.hpp about ARM relocs > http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h I tried to use the dyld_priv.h from cctools to no avail, using the one from dyld (as you pointed out) worked Also I had to "drag and drop" llvm-c/lto.h into the project, since no...
2012 Jan 14
3
[LLVMdev] Off Topic: Building ld
Thanks for your response, that's kinda what I've gathered over the years. I was hoping that the Xcode project would have "just worked". I'll keep piece-mealing it together, and hope that it works. I'll try to post a radar. Joe Joe Abbey Director of S/W Development Arxan Technologies, Inc. 1305 Cumberland Ave, Ste 215 West Lafayette, IN 47906 W: 765-889-4756 x2 C:
2020 May 26
2
Emitting aligned nlist_64 structures for Mach-O in MC
As part of our work on LLD for Mach-O, we’ve observed that the object files produced by LLVM don’t always have aligned nlist_64 entries. For context, nlist_64 is the 64-bit symbol table entry structure for Mach-O, and the symbol table is an array of nlist_64 entries. nlist_64 has an 8 byte member, so it should be 8-byte aligned, but we’ve seen object files where the symbol table only has a 4-byte