https://bugs.llvm.org/show_bug.cgi?id=44989
Bug ID: 44989
Summary: clang++-9 generates linker error with address
sanitizer and gold linker
Product: clang
Version: 9.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: joubert...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
I'm using all packages from a Debian testing installation.
The combination of clang++-9 && address sanitizer && gold linker gives me a
linker warning (potentially turned into an error by linker flag) about not
being able to export the local symbol `__asan_extra_spill_area`.
$ cat main.cpp
int main(){}
$ /usr/bin/clang++-9 -fsanitize=address -fuse-ld=gold main.cpp
/usr/bin/ld.gold: warning: Cannot export local symbol '__asan_extra_spill_area'
Only the specific combination of clang 9/10, address sanitizer and gold linker
seems to be broken:
- Changing compiler solves the issue: g++ 9.2.1 and clang++-8 are ok, clang++-9
and clang++-10-rc2 exhibit the issue
- Changing the sanitizer solves the issue: undefined, memory and thread are ok
- Changing the linker solves the issue: bfd and lld-9 are ok
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs