versioning of _Unwind_*() symbols

David Mosberger davidm@napali.hpl.hp.com
Fri Apr 23 02:30:00 GMT 2004


>>>>> On Thu, 22 Apr 2004 18:04:41 -0700, "H. J. Lu" <hjl@lucon.org> said:

  >>  I think HJ is right.  I did try with an older GCC release that
  >> was built with libunwind enabled.  The unwind library showed up
  >> as a dependency of the executable even though the linker command
  >> line did not specify -lunwind explicitly.  Perhaps it's a linker
  >> bug?

  HJ> The linker behavior is intentional.

What's the advantage of that behavior?

  HJ> We can always add a new linker switch to turn it off for the ABI
  HJ> library with something like

  HJ> 	-Wl,--no-add-needed -lABI -Wl,--add-needed

That seems fine to me.

	--david



More information about the Gcc mailing list