[Bug gold/25975] clang -fsanitze=adderss prints waring only with gold

2020-05-12 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25975

--- Comment #3 from H.J. Lu  ---
It works with my gold on users/hjl/gold/x86 branch at

https://gitlab.com/x86-binutils/binutils-gdb/-/tree/users/hjl/gold/x86

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/25975] clang -fsanitze=adderss prints waring only with gold

2020-05-12 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25975

--- Comment #2 from dilyan.palauzov at aegee dot org  ---
I think I have it, at least there are some libclang_rt files.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/25975] clang -fsanitze=adderss prints waring only with gold

2020-05-12 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25975

--- Comment #1 from H.J. Lu  ---
(In reply to dilyan.palau...@aegee.org from comment #0)
> I have clang and lld 10.0, ld.bfd 2.34.50.20200506, ld.gold 1.16 /
> 2.34.50.20200506 and i.c:
> 
> #include 
> #include 
> 
> int main() {
>   bool b = 99;
>   printf("a %i\n", b);
> }
> 
> The question is, why only the last call emits a warning:
> $ clang -fsanitize=address -fuse-ld=bfd  -o i i.c
> $ clang -fsanitize=address -fuse-ld=lld  -o i i.c
> $ clang -fsanitize=address -fuse-ld=gold -o i i.c
> /usr/local/bin/ld.gold: warning: Cannot export local symbol
> '__asan_extra_spill_
> area'
> 
> See also https://sourceware.org/bugzilla/show_bug.cgi?id=25940.

Do you have compiler-rt installed?

-- 
You are receiving this mail because:
You are on the CC list for the bug.