[patch] Hide the stub created for MO_ExternalSymbol too.
Rafael EspĂndola
rafael.espindola at gmail.com
Mon Dec 2 13:44:45 PST 2013
On 2 December 2013 15:59, Nick Kledzik <kledzik at apple.com> wrote:
> Rafael,
>
> Mach-O has not needed stubs in object files for many years. The Apple released clang does not generate stubs. Perhaps you have some odd configuration that still produces stubs?
My system doesn't need them, but it looks like clang still produces
them on X86 for OS X < 10.5 :
if (Subtarget->isPICStyleStubAny() &&
(!Subtarget->getTargetTriple().isMacOSX() ||
Subtarget->getTargetTriple().isMacOSXVersionLT(10, 5))) {
// PC-relative references to external symbols should go through $stub,
// unless we're building with the leopard linker or later, which
// automatically synthesizes these stubs.
OpFlags = X86II::MO_DARWIN_STUB;
Cheers,
Rafael
More information about the llvm-commits
mailing list