<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ben,<div><br></div><div>Thanks for your help!</div><div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="color: rgb(32, 107, 232); -webkit-text-decorations-in-effect: underline; "><a href="http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h">http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h</a></span></blockquote></div><div>Yep, as Joe Ranieri pointed out, I had to tell MachOFileAbstraction.hpp about ARM relocs</div><div><br></div><div><blockquote type="cite"><a href="http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h">http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h</a></blockquote></div><div>I tried to use the dyld_priv.h from cctools to no avail, using the one from dyld (as you pointed out) worked</div><div><br></div><div>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?</div><div><br></div><div>Hurray, maybe I can debug my linker issue now.</div><div><br></div><div>Joe</div><div><br></div><div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" color="#a9a9a9" face="'Times New Roman'" size="2">Joe Abbey<br></font></div></span></div></span><span class="Apple-style-span" style="color: rgb(169, 169, 169); font-family: 'Times New Roman'; font-size: small; ">Director of S/W Development</span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" color="#a9a9a9" face="'Times New Roman'" size="2">Arxan Technologies, Inc.<br>1305 Cumberland Ave, Ste 215<br>West Lafayette, IN 47906<br><a href="mailto:jabbey@arxan.com">jabbey@arxan.com</a><br>www.arxan.com</font><br><br></div></span></div></span></span>
</div>


<br><div><div>On Jan 14, 2012, at 11:57 AM, Joe Abbey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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".</div><div><br></div><div>I'll keep piece-mealing it together, and hope that it works.</div><div><br></div><div>I'll try to post a radar.</div><div><br></div><div><div><div>On Jan 14, 2012, at 11:47 AM, Benjamin Kramer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On 14.01.2012, at 17:23, Joe Abbey wrote:<br><br><blockquote type="cite">I have a need to build ld from source to understand an assert(0).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I got excited when I found that ld64 on the opensource portal contains an xcodeproj<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://opensource.apple.com/source/ld64/ld64-127.2/">http://opensource.apple.com/source/ld64/ld64-127.2/</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">But... it seems like I'm lacking mach-o/arm/reloc.h, and dyld_priv.h.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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.<br></blockquote><br>Most of the stuff on <a href="http://opensource.apple.com/">opensource.apple.com</a> is very painful to build. In this case you have to pick up reloc.h from<br>the cctools archive and dyld_priv.h from dyld.<br><br><a href="http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h">http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h</a><br><a href="http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h">http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h</a><br><br>put them in the right directories and it should compile.<br><br></div></blockquote></div></div></div></blockquote></div><br></div></body></html>