From 3851fca49e08f131a68bbb80e9c0b09c162e0bc9 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 26 Mar 2002 16:01:04 +0000 Subject: [PATCH] 2002-03-26 H.J. Lu (hjl@gnu.org) * elflink.h (elf_link_input_bfd): Complain about relocations against local symbols in discarded sections. --- bfd/ChangeLog | 5 +++++ bfd/elflink.h | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 28f8b3280b9..a6dc6493a40 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-03-26 H.J. Lu (hjl@gnu.org) + + * elflink.h (elf_link_input_bfd): Complain about relocations + against local symbols in discarded sections. + 2002-03-26 Alan Modra * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections. diff --git a/bfd/elflink.h b/bfd/elflink.h index 43abe17bce8..fa960291f71 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -6662,8 +6662,7 @@ elf_link_input_bfd (finfo, input_bfd) if (sec != NULL && elf_discarded_section (sec)) { #if BFD_VERSION_DATE < 20031005 - if ((o->flags & SEC_DEBUGGING) != 0 - || (sec->flags & SEC_LINK_ONCE) != 0) + if ((o->flags & SEC_DEBUGGING) != 0) { #if BFD_VERSION_DATE > 20021005 (*finfo->info->callbacks->warning) -- 2.30.2