2005-05-08 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 8 May 2005 13:43:48 +0000 (13:43 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 8 May 2005 13:43:48 +0000 (13:43 +0000)
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.

bfd/ChangeLog
bfd/elflink.c

index 03b19ab63ed4fd96cab19e960b46559e21263a9d..ee4797d349235d3bfecf8be42aa9b392af180c9a 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2005-05-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf-bfd.h (elf_backend_data): Update special_sections to
index 506897b9d61a7f9f30c734323c25f21b5e4b15d2..5c5fb2def8ff2813610ecedda03e938df2df4d01 100644 (file)
@@ -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