[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #17 from dilyan.palauzov at aegee dot org  ---
libclang_rt.asan-x86_64.a.syms, included in
https://mail.aegee.org/dpa/pr25975/pr-gold-25975.tar.xz, does not contain
“spill".

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #16 from H.J. Lu  ---
(In reply to dilyan.palau...@aegee.org from comment #12)
> Calling ./chroot-gold-asan from
> https://mail.aegee.org/dpa/pr25975/pr-gold-25975.tar.xz (39MB), which is the
> same as calling
> 
>   chroot . ./ld.gold -Llib64 --hash-style=both --eh-frame-hdr -m elf_x86_64
> -dynamic-linker ./ld-linux-x86-64.so.2 -o a.out ./crt1.o ./crti.o
> ./crtbegin.o --whole-archive ./libclang_rt.asan-x86_64.a --no-whole-archive
> --dynamic-list=./libclang_rt.asan-x86_64.a.syms i.o --no-as-needed -lpthread
> -lrt -lm -ldl -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
> -lgcc_s --no-as-needed ./crtend.o ./crtn.o
> 
> prints:
>   ./ld.gold: warning: Cannot export local symbol '__asan_extra_spill_area'
> 
> ld.gold is from binutils-gdb.master, commit
> 607b483327fdfc75fb193870b3c4e7445ce3f64d.

Do you have __asan_extra_spill_area in ./libclang_rt.asan-x86_64.a.syms?

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #15 from dilyan.palauzov at aegee dot org  ---
My libclang_rt.asan-x86_64.a is included in
https://mail.aegee.org/dpa/pr25975/pr-gold-25975.tar.xz.

$ readelf -sW libclang_rt.asan-x86_64.a |grep _asan_extra_spill_area
   281: 61 FUNCGLOBAL HIDDEN   172
__asan_extra_spill_area
12:  0 NOTYPE  GLOBAL DEFAULT  UND
__asan_extra_spill_area
$ clang -fsanitize=address -fuse-ld=gold i.o
$ readelf -sW a.out |grep _asan_extra_spill_area
  1357: 004c5b2061 FUNCLOCAL  HIDDEN12
__asan_extra_spill_area

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #14 from H.J. Lu  ---
(In reply to dilyan.palau...@aegee.org from comment #13)
> Is this now reproducible?

I have

[hjl@gnu-4 linux]$ readelf -sW libclang_rt.asan-x86_64.a | grep
__asan_extra_spill_area
   185: 1dc4 0 NOTYPE  LOCAL  HIDDEN 6
.annobin___asan_extra_spill_area.start
   186: 1e0d 0 NOTYPE  LOCAL  HIDDEN 6
.annobin___asan_extra_spill_area.end
   385: 1dd061 FUNCGLOBAL HIDDEN 6
__asan_extra_spill_area
 7:  0 NOTYPE  GLOBAL DEFAULT  UND
__asan_extra_spill_area
[hjl@gnu-4 tmp]$ clang -fsanitize=address -fuse-ld=gold i.o 
[hjl@gnu-4 tmp]$ readelf -sW a.out| grep __asan_extra_spill_area 
  4269: 004c73c4 0 NOTYPE  LOCAL  HIDDEN13
.annobin___asan_extra_spill_area.start
  4270: 004c740d 0 NOTYPE  LOCAL  HIDDEN13
.annobin___asan_extra_spill_area.end
  7505: 004c73d061 FUNCLOCAL  HIDDEN13
__asan_extra_spill_area
[hjl@gnu-4 tmp]$ 

What do you get on __asan_extra_spill_area?

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #13 from dilyan.palauzov at aegee dot org  ---
Is this now reproducible?

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #12 from dilyan.palauzov at aegee dot org  ---
Calling ./chroot-gold-asan from
https://mail.aegee.org/dpa/pr25975/pr-gold-25975.tar.xz (39MB), which is the
same as calling

  chroot . ./ld.gold -Llib64 --hash-style=both --eh-frame-hdr -m elf_x86_64
-dynamic-linker ./ld-linux-x86-64.so.2 -o a.out ./crt1.o ./crti.o ./crtbegin.o
--whole-archive ./libclang_rt.asan-x86_64.a --no-whole-archive
--dynamic-list=./libclang_rt.asan-x86_64.a.syms i.o --no-as-needed -lpthread
-lrt -lm -ldl -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed 
-lgcc_s --no-as-needed ./crtend.o ./crtn.o

prints:
  ./ld.gold: warning: Cannot export local symbol '__asan_extra_spill_area'

ld.gold is from binutils-gdb.master, commit
607b483327fdfc75fb193870b3c4e7445ce3f64d.

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #11 from H.J. Lu  ---
(In reply to dilyan.palau...@aegee.org from comment #10)
> Does it also work with the attached i.o as input?

[hjl@gnu-cfl-2 tmp]$ clang -fsanitize=address -fuse-ld=gold i.o
[hjl@gnu-cfl-2 tmp]$ ./a.out 
a 1
[hjl@gnu-cfl-2 tmp]$ clang -fsanitize=address -fuse-ld=lld i.o
[hjl@gnu-cfl-2 tmp]$ ./a.out 
a 1
[hjl@gnu-cfl-2 tmp]$ clang -fsanitize=address -fuse-ld=bfd i.o
[hjl@gnu-cfl-2 tmp]$ ./a.out 
a 1
[hjl@gnu-cfl-2 tmp]$

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #10 from dilyan.palauzov at aegee dot org  ---
Does it also work with the attached i.o as input?

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #9 from H.J. Lu  ---
 "/usr/bin/ld.gold" --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64
-dynamic-linker /lib64/ld-linux-x86-64.so.2 -o a.out
/usr/bin/../lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crt1.o
/usr/bin/../lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crti.o
/usr/bin/../lib/gcc/x86_64-redhat-linux/10/crtbegin.o
-L/usr/bin/../lib/gcc/x86_64-redhat-linux/10
-L/usr/bin/../lib/gcc/x86_64-redhat-linux/10/../../../../lib64
-L/usr/bin/../lib64 -L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/bin/../lib/gcc/x86_64-redhat-linux/10/../../.. -L/usr/bin/../lib -L/lib
-L/usr/lib --whole-archive
/usr/lib64/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.a --no-whole-archive
--export-dynamic /tmp/x-ef8058.o --no-as-needed -lpthread -lrt -lm -ldl -lgcc
--as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/usr/bin/../lib/gcc/x86_64-redhat-linux/10/crtend.o
/usr/bin/../lib/gcc/x86_64-redhat-linux/10/../../../../lib64/crtn.o

works for me on Fedora/32.

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #8 from dilyan.palauzov at aegee dot org  ---
Switching to the alternative gold (411ae86dfcf9da4) has not helped.  The
outputs of

clang -fsanitize=address -c -o i.o i.c
clang -v -fuse-ld=bfd  -fsanitize=address i.o &> bfd.txt
clang -v -fuse-ld=lld  -fsanitize=address i.o &> lld.txt
clang -v -Wl,--debug,all -fuse-ld=gold -fsanitize=address i.o &> gold.txt

are attached.

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #7 from dilyan.palauzov at aegee dot org  ---
Created attachment 12532
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12532=edit
Output of `clang -v -fsanitize=address -fuse-ld=gold -Wl,-debug,all i.o`

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #6 from dilyan.palauzov at aegee dot org  ---
Created attachment 12531
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12531=edit
Output of `clang -v -fuse-ld=lld -fsanitize=address i.o`

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #5 from dilyan.palauzov at aegee dot org  ---
Created attachment 12530
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12530=edit
Output of `clang -v -fuse-ld=bfd -fsanitize=address i.o`

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

--- Comment #4 from dilyan.palauzov at aegee dot org  ---
Created attachment 12529
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12529=edit
Output of `clang -fsanitize=address -c -o i.o i.c`

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


[Bug gold/25975] clang -fsanitze=address prints warning only with gold

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

dilyan.palauzov at aegee dot org  changed:

   What|Removed |Added

Summary|clang -fsanitze=address |clang -fsanitze=address
   |prints waring only with |prints warning only with
   |gold|gold

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