[LLVMdev] Off Topic: Building ld
Joe Abbey
jabbey at arxan.com
Sun Jan 15 08:55:12 PST 2012
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 combination of Project/Target/Recursive Header Search paths to /home/jabbey/src/llvm/include seemed to do the trick. Maybe I'm doing it wrong?
Hurray, maybe I can debug my linker issue now.
Joe
Joe Abbey
Director of S/W Development
Arxan Technologies, Inc.
1305 Cumberland Ave, Ste 215
West Lafayette, IN 47906
jabbey at arxan.com
www.arxan.com
On Jan 14, 2012, at 11:57 AM, Joe Abbey wrote:
> 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.
>
> On Jan 14, 2012, at 11:47 AM, Benjamin Kramer wrote:
>
>>
>> On 14.01.2012, at 17:23, Joe Abbey wrote:
>>
>>> I have a need to build ld from source to understand an assert(0).
>>>
>>> I got excited when I found that ld64 on the opensource portal contains an xcodeproj
>>>
>>> http://opensource.apple.com/source/ld64/ld64-127.2/
>>>
>>> But... it seems like I'm lacking mach-o/arm/reloc.h, and dyld_priv.h.
>>>
>>> I'm doing my best to stitch it all together, but if anyone has any pointers to make this less painful, it would be much obliged.
>>
>> Most of the stuff on opensource.apple.com is very painful to build. In this case you have to pick up reloc.h from
>> the cctools archive and dyld_priv.h from dyld.
>>
>> http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h
>> http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h
>>
>> put them in the right directories and it should compile.
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120115/2b21e2e9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120115/2b21e2e9/attachment.bin>
More information about the llvm-dev
mailing list