gold patch committed: Fix --exclude-libs with undefined symbol

Ian Lance Taylor iant@google.com
Thu Dec 31 01:16:00 GMT 2009


The support for --exclude-libs did not correctly handle an undefined
symbol in the excluded library.  It gave such a symbol hidden
visibility, which makes no sense.  --exclude-libs should only apply to
symbols actually being defined in the library being excluded.  I
committed this patch to fix it, along with a test case.

Ian


2009-12-30  Ian Lance Taylor  <iant@google.com>

	PR 10916
	* symtab.cc (Symbol_table::add_from_relobj): When not exporting
	symbols from this object, don't change the visibility of an
	undefined symbol.
	* testsuite/exclude_libs_test_1.c (lib1_ref): New function.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1342 bytes
Desc: exclude
URL: <https://sourceware.org/pipermail/binutils/attachments/20091231/db22c726/attachment.bin>


More information about the Binutils mailing list