[Bug dynamic-link/21041] Fix for bug 20019 causes linker errors for shared libraries using longjmp

pb at pbcl dot net sourceware-bugzilla@sourceware.org
Thu Jan 12 16:24:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21041

Phil Blundell <pb at pbcl dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #2 from Phil Blundell <pb at pbcl dot net> ---
(In reply to Florian Weimer from comment #1)
> The bug is here:
> 
> $ ld.gold -shared  -z now -o libbar.so bar.o
> 
> You must link against the relevant glibc DSOs if you use symbols from glibc,
> otherwise the resulting shared object is undefined.

Sorry, that was a poor testcase.  However, linking -lc at this point doesn't
make any difference.  Linking -lpthread does, but the point is that libbar
doesn't use any symbols from libpthread itself and has no reason to link with
that library.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list