2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 10 May 2005 01:06:04 +0000 (01:06 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 10 May 2005 01:06:04 +0000 (01:06 +0000)
* ldmain.c (reloc_overflow): Use output_bfd if the symbol
is defined in the ABS section.

ld/ChangeLog
ld/ldmain.c

index 83fd86c479123d85e1f67bb96152ab591299cc66..9da68d5dd018fa04d89bc80262d229390b29ff43 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ldmain.c (reloc_overflow): Use output_bfd if the symbol
+       is defined in the ABS section.
+
 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
index 0fce8bf62addb34074b2e2b1c341aa9f4cc90981..e89bceab0f350c4fdf17d2d7f8d659ce79e589d8 100644 (file)
@@ -1450,7 +1450,9 @@ reloc_overflow (struct bfd_link_info *info ATTRIBUTE_UNUSED,
        case bfd_link_hash_defweak:
          einfo (_(" relocation truncated to fit: %s against symbol `%T' defined in %A section in %B"),
                 reloc_name, entry->root.string,
-                entry->u.def.section, entry->u.def.section->owner);
+                entry->u.def.section,
+                entry->u.def.section == bfd_abs_section_ptr
+                ? output_bfd : entry->u.def.section->owner);
          break;
        default:
          abort ();