r203052 - Construct GlobalValues with the correct linkage instead of using setLinkage.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Sep 12 13:04:38 PDT 2014


On 12 September 2014 16:03, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> I can reproduce that this crashes with
>
>  ./bin/clang -cc1 -triple x86_64-apple-macosx -emit-llvm  ~/llvm/test.m -w
>
> because it tries to declare a
>
> l_OBJC_PROTOCOL_$_p1 with a weak linkage.
>
> Nick, does ld64 support having undefined reference to l prefixed
> symbols be resolved to definitions in another file?

And if it does, what happens if there is no definition? A link error
or the symbol resolves to null?

Cheers,
Rafael




More information about the cfe-commits mailing list