From cfca085c35a6d1ff0b82fdf53aa732c867db357c Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 8 May 2005 13:43:48 +0000 Subject: [PATCH] 2005-05-08 H.J. Lu 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 | 7 +++++++ bfd/elflink.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 03b19ab..ee4797d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2005-05-08 H.J. Lu + + 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 * elf-bfd.h (elf_backend_data): Update special_sections to diff --git a/bfd/elflink.c b/bfd/elflink.c index 506897b..5c5fb2d 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 -- 2.7.4