[LLVMdev] Shared libraries, msan and -z,defs

Greg Fitzgerald garious at gmail.com
Thu Jan 22 12:23:15 PST 2015


> bfd ld has --ignore-unresolved-symbol, but it is missing from gold.

For gold, there's --unresolved-symbols=ignore-all

-Greg

On Thu, Jan 22, 2015 at 12:11 PM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
>>> But then the program would fail to start if the (empty) interface
>>> library is not available at runtime library search path.
>>> Which is the common situation, unless you install clang as a
>>> system-wide compiler. This will create lots of deployment problems.
>>
>>
>> True, but it's only a headache for people using -z defs.
>>
>> I'm surprised there isn't a linker option we can use like '-u __msan_memcpy'
>> to say "yeah, this symbol is undefined, but it's expected to be present at
>> runtime".
>
> bfd ld has --ignore-unresolved-symbol, but it is missing from gold.
>
> Cheers,
> Rafael
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list