[Bug gold/25925] --export-dynamic-symbol should drop implicit -u
https://sourceware.org/bugzilla/show_bug.cgi?id=25925 --- Comment #1 from Fangrui Song --- Patch: https://sourceware.org/pipermail/binutils/2020-June/111641.html -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/26039] gold doesn't add PIE flag
https://sourceware.org/bugzilla/show_bug.cgi?id=26039 --- Comment #3 from Fangrui Song --- Can be closed now. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/25975] --dynamic-list doesn't work correctly
https://sourceware.org/bugzilla/show_bug.cgi?id=25975 --- Comment #22 from Fangrui Song --- (In reply to H.J. Lu from comment #20) > // If the symbol was forced dynamic in a --dynamic-list file > // or an --export-dynamic-symbol option, add it. > if (!this->is_from_dynobj() > && (parameters->options().in_dynamic_list(this->name()) > || parameters->options().is_export_dynamic_symbol(this->name( > { > if (!this->is_forced_local()) > return true; > gold_warning(_("Cannot export local symbol '%s'"), >this->demangled_name().c_str()); > return false; > } > > I don't think the warning is necessary when it is a wild card match. Agreed. clang -fsanitize=address uses --dynamic-list when libclang_rt.asan-x86_64.a.syms exists. This behavior has been there for a long time, since 3.3 (https://github.com/llvm/llvm-project/commit/f3e624ca73b007552554b31358f4abde9eb2d3b7 ). So the gold warning may be there for a long time as well. % readelf -Ws lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a | grep __asan_extra_spill_area 251: 48 FUNCGLOBAL HIDDEN 162 __asan_extra_spill_area 6: 0 NOTYPE GLOBAL DEFAULT UND __asan_extra_spill_area The spurious warning should just be deleted, along with msgid "Cannot export local symbol '%s'" in various .po files. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/25975] --dynamic-list doesn't work correctly
https://sourceware.org/bugzilla/show_bug.cgi?id=25975 --- Comment #21 from dilyan.palauzov at aegee dot org --- > Do you have __asan_extra_spill_area in ./libclang_rt.asan-x86_64.a.syms? If I do not have __asan_extra_spill_area in ./libclang_rt.asan-x86_64.a.syms does this mean, that clang/rt was self-compiled anyhow wrong? -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/25975] --dynamic-list doesn't work correctly
https://sourceware.org/bugzilla/show_bug.cgi?id=25975 --- Comment #20 from H.J. Lu --- // If the symbol was forced dynamic in a --dynamic-list file // or an --export-dynamic-symbol option, add it. if (!this->is_from_dynobj() && (parameters->options().in_dynamic_list(this->name()) || parameters->options().is_export_dynamic_symbol(this->name( { if (!this->is_forced_local()) return true; gold_warning(_("Cannot export local symbol '%s'"), this->demangled_name().c_str()); return false; } I don't think the warning is necessary when it is a wild card match. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/25975] --dynamic-list doesn't work correctly
https://sourceware.org/bugzilla/show_bug.cgi?id=25975 H.J. Lu changed: What|Removed |Added Last reconfirmed||2020-06-27 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #19 from H.J. Lu --- (In reply to H.J. Lu from comment #18) > (In reply to dilyan.palau...@aegee.org from comment #17) > > libclang_rt.asan-x86_64.a.syms, included in > > https://mail.aegee.org/dpa/pr25975/pr-gold-25975.tar.xz, does not contain > > “spill". > > I got > > > [hjl@gnu-cfl-2 pr-gold-25975]$ ld.bfd -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 > [hjl@gnu-cfl-2 pr-gold-25975]$ 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 > ld.gold: warning: Cannot export local symbol '__asan_extra_spill_area' > [hjl@gnu-cfl-2 pr-gold-25975]$ > > It looks like a gold --dynamic-list bug. The problem is _Unwind_RaiseException; __asan_*; ^ This matches __asan_extra_spill_area. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/25975] --dynamic-list doesn't work correctly
https://sourceware.org/bugzilla/show_bug.cgi?id=25975 H.J. Lu changed: What|Removed |Added CC||i at maskray dot me Summary|clang -fsanitze=address |--dynamic-list doesn't work |prints warning only with|correctly |gold| --- Comment #18 from H.J. Lu --- (In reply to dilyan.palau...@aegee.org from comment #17) > libclang_rt.asan-x86_64.a.syms, included in > https://mail.aegee.org/dpa/pr25975/pr-gold-25975.tar.xz, does not contain > “spill". I got [hjl@gnu-cfl-2 pr-gold-25975]$ ld.bfd -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 [hjl@gnu-cfl-2 pr-gold-25975]$ 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 ld.gold: warning: Cannot export local symbol '__asan_extra_spill_area' [hjl@gnu-cfl-2 pr-gold-25975]$ It looks like a gold --dynamic-list bug. -- 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
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
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
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
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.