[cfe-dev] -fsanitize=undefined and shared libraries

Alexey Samsonov samsonov at google.com
Thu Jan 17 07:21:26 PST 2013


On Thu, Jan 17, 2013 at 7:02 PM, Martin Martin <
martin at silverliningsystems.com> wrote:

> Any word on this linking error?  Would a test case help?
>
> Thanks,
> Martin
>
>
>
> On Sat, Jan 12, 2013 at 4:40 PM, Martin Martin <
> martin at silverliningsystems.com> wrote:
>
>> Great, that works!  The next linking error I get is:
>>
>>  hidden symbol `__ubsan_vptr_type_cache' in
>> /home/martin/clang/build/bin/../lib/clang/3.3/lib/linux/libclang_rt.ubsan-x86_64.a(ubsan_type_hash.cc.o)
>> is referenced by DSO
>>
>
Just a random guess - would adding SANITIZER_INTERFACE_ATTRIBUTE
to __ubsan_vptr_type_cache definition help? Like this:
extern "C" SANITIZER_INTERFACE_ATTRIBUTE HashValue
__ubsan_vptr_type_cache[VptrTypeCacheSize];



>
>> It's a little trouble for me to narrow down the test case, but I'm happy
>> to do it if it helps.
>>
>> Thanks,
>> Martin
>>
>>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>


-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130117/8379ee8b/attachment.html>


More information about the cfe-dev mailing list