From a6e1b90f78109a93688a5935ab3efc0d8b49e0e3 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 10 May 2005 01:06:04 +0000 Subject: [PATCH] 2005-05-09 H.J. Lu * ldmain.c (reloc_overflow): Use output_bfd if the symbol is defined in the ABS section. --- ld/ChangeLog | 5 +++++ ld/ldmain.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 83fd86c..9da68d5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-05-09 H.J. Lu + + * ldmain.c (reloc_overflow): Use output_bfd if the symbol + is defined in the ABS section. + 2005-05-06 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms): diff --git a/ld/ldmain.c b/ld/ldmain.c index 0fce8bf..e89bcea 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -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 (); -- 2.7.4