https://sourceware.org/bugzilla/show_bug.cgi?id=19553
Bug ID: 19553
Summary: linking against libs that require pthreads breaks due
to symbol changes
Product: binutils
Version: 2.26
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: hjl.tools at gmail dot com
Reporter: vapier at gentoo dot org
Depends on: 18720
Target Milestone: ---
Target: x86_64-linux-gnu
after the change for bug 18720 landed, trying to use libs that use pthreads
under glibc fails when the main app itself doesn't use pthreads.
example:
$ echo 'main() { fork(); }' > test.c
$ gcc test.c -fsanitize=address
ld: /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/libasan.so: undefined reference to
symbol 'fork@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
this is a regression wrt binutils 2.25.
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=18720
[Bug 18720] No symbol version section for versioned symbol `foo@FOO'
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils