gold patch committed: Don't put hidden symbols in dynamic symbol table

Ian Lance Taylor iant@google.com
Wed Dec 30 07:41:00 GMT 2009


elflint spotted a real problem: when a STV_HIDDEN symbol appeared in
both a regular object and a dynamic object, gold would put it in the
dynamic symbol table.  That doesn't cause a problem when running the
program, but it makes no sense.  I committed this patch to fix the
problem.

Ian


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

	PR 10450
	* symtab.h (Symbol::needs_dynsym_entry): A symbol in both a
	regular and a dynamic object only needs a dynamic symbol table
	entry if it is externally visible.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 594 bytes
Desc: hidden
URL: <https://sourceware.org/pipermail/binutils/attachments/20091230/d17d349b/attachment.bin>


More information about the Binutils mailing list