public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fix map file reference
@ 2014-04-05  7:00 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2014-04-05  7:00 UTC (permalink / raw)
  To: binutils

The testcase in pr16417 comment #6 produces a map file showing
libpthread.so.0               (write@@GLIBC_2.2.5)
ie. missing the file referencing the symbol.

Other uses of old_bfd in elf_link_add_object_symbols also need this
fix.

	* elflink.c (_bfd_elf_add_default_symbol): Pass poldbfd when
	merging non-default sym.

diff --git a/bfd/elflink.c b/bfd/elflink.c
index 354f8d0..3de00e1 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -1745,7 +1745,7 @@ nondefault:
   size_change_ok = FALSE;
   tmp_sec = sec;
   if (!_bfd_elf_merge_symbol (abfd, info, shortname, sym, &tmp_sec, &value,
-			      &hi, NULL, NULL, NULL, &skip, &override,
+			      &hi, poldbfd, NULL, NULL, &skip, &override,
 			      &type_change_ok, &size_change_ok))
     return FALSE;
 

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-05  7:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-05  7:00 Fix map file reference Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).