summaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2005-05-08 13:43:48 +0000
committerH.J. Lu <hjl@lucon.org>2005-05-08 13:43:48 +0000
commit7bac2c1636bae2c59c3a3bd32ce7543596ecedcb (patch)
treea458468fe07ee61413cdb50f8cd1198ed2a6d7db /bfd/elflink.c
parent318cb985bfd98cce427e9c0fdb5767e5ba6491df (diff)
downloadbinutils-redhat-7bac2c1636bae2c59c3a3bd32ce7543596ecedcb.tar.gz
2005-05-08 H.J. Lu <hongjiu.lu@intel.com>
PR 939 * elflink.c (elf_link_output_extsym): Use output_bfd if h->root.u.def.section is bfd_abs_section_ptr when reporting error.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 506897b9d6..5c5fb2def8 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -6379,7 +6379,9 @@ elf_link_output_extsym (struct elf_link_hash_entry *h, void *data)
{
(*_bfd_error_handler)
(_("%B: %s symbol `%s' in %B is referenced by DSO"),
- finfo->output_bfd, h->root.u.def.section->owner,
+ finfo->output_bfd,
+ h->root.u.def.section == bfd_abs_section_ptr
+ ? finfo->output_bfd : h->root.u.def.section->owner,
ELF_ST_VISIBILITY (h->other) == STV_INTERNAL
? "internal"
: ELF_ST_VISIBILITY (h->other) == STV_HIDDEN