<div class="gmail_quote">On Sat, Oct 1, 2011 at 1:03 AM, David Chisnall <span dir="ltr"><<a href="mailto:csdavec@swan.ac.uk">csdavec@swan.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
As the commit message implies, it was making -B work for paths that are provided to ld under Linux.  A lot of cross-compile toolchains put things like crtbegin.o in an SDK-specific location.  With this applied, it was possible to just add -B/path/to/sdk to the clang flags and have things work.<br>
</blockquote><div><br></div><div>For reference, I'm currently working on making --sysroot work for linker flags passed through ld, based on how GCC manages them. I'm not familiar at all with '-B's behavior, as it isn't used by the cross-compiling GCC toolchain I work with, and it was indicated to have design problems.</div>
<div><br></div><div>That said, if you need to implement support for '-B' behavior, please do so. One good way to clarify its intent is to include test cases for exactly what you expect the effect to be on the driver.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">If this has been reverted, then please can someone implement the same feature in a better way?  Without it, I will no longer be able to cross-compile targeting ARM/Linux...</blockquote>
<div><br></div><div>If you have a use case, I think you're the best person to implement it. Please work up a patch that has both test cases covering the features you want, and that doesn't break existing test cases (I added one to cover the regression that your original patch caused), and mail it to the list.</div>
<div><br></div><div>I do think something like this should get some review, as I've heard concerns and objections to furthering Clang's support for the '-B' option in the past, as it seemed poorly designed in GCC.</div>
</div>