[llvm-bugs] [Bug 44989] New: clang++-9 generates linker error with address sanitizer and gold linker
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 21 05:45:04 PST 2020
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: unassignedclangbugs at nondot.org
Reporter: joubert.sy at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200221/7732dcbf/attachment.html>
More information about the llvm-bugs
mailing list