This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/21041] IFUNC setjmp/longjmp in libpthread.so are unsafe
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 30 Jan 2017 17:06:41 +0000
- Subject: [Bug dynamic-link/21041] IFUNC setjmp/longjmp in libpthread.so are unsafe
- Auto-submitted: auto-generated
- References: <bug-21041-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21041
--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 9782
--> https://sourceware.org/bugzilla/attachment.cgi?id=9782&action=edit
A testcase
[hjl@gnu-6 pr21041d]$ make
gcc -O2 -c -o main.o main.c
gcc -O2 -fPIC -c -o foo.o foo.c
gcc -O2 -c -o bar1.o bar1.c
gcc -shared -Wl,--soname=libbar.so -o libbar1.so bar1.o
-Wl,--version-script=libbar.map
gcc -shared -o libfoo.so foo.o libbar1.so
gcc -O2 -c -o xxx.o xxx.c
gcc -shared -o libxxx.so xxx.o -Wl,--version-script=libbar.map
gcc -o x main.o libfoo.so libbar1.so libxxx.so -Wl,-rpath,.
gcc -O2 -c -o bar2.o bar2.c
gcc -shared -Wl,--soname=libbar.so -o libbar2.so bar2.o
-Wl,--version-script=libbar.map
ln -sf libbar1.so libbar.so
./x
ln -sf libbar2.so libbar.so
./x
./x: relocation error: ./libfoo.so: symbol bar1, version BAR not defined in
file libbar.so with link time reference
Makefile:12: recipe for target 'all' failed
make: *** [all] Error 127
[hjl@gnu-6 pr21041d]$
--
You are receiving this mail because:
You are on the CC list for the bug.