[PATCH] Add a fallback mechanism for undefined atom.

Nick Kledzik kledzik at apple.com
Tue Sep 3 12:36:41 PDT 2013


On Sep 3, 2013, at 11:06 AM, Rui Ueyama <ruiu at google.com> wrote:
> Nick, does Mach-O need symbol aliasing to be handled in the linker?
Yes.  The darwin linker has command line options for adding aliases.  

Back when I first started working on the darwin linker, a big complaint from the compiler team was that mach-o did not support aliases like ELF did, so the compiler team kept having to special case lots of test cases and functionality that used __attribute__((alias(“xx”))) on darwin.

-Nick


> 
> If ELF, Mach-O and COFF don't need to handle symbol aliasing in the linker, I'd conclude symbol aliasing is not actually what need, and remove isAlias() and such from DefinedAtom. And if that's the case (if we don't need symbol aliasing in the linker), I think my original patch would make more sense.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130903/a6faca63/attachment.html>


More information about the llvm-commits mailing list