2002-03-26 H.J. Lu (hjl@gnu.org)
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Mar 2002 16:01:04 +0000 (16:01 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Mar 2002 16:01:04 +0000 (16:01 +0000)
* elflink.h (elf_link_input_bfd): Complain about relocations
against local symbols in discarded sections.

bfd/ChangeLog
bfd/elflink.h

index 28f8b3280b91d6f5d418731e6cb13cba6135e67f..a6dc6493a40f70c2d5f9b3ad5de77e346d233393 100644 (file)
@@ -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  <amodra@bigpond.net.au>
 
        * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
index 43abe17bce86bdad2844d86c6ffd8ddbbd3d51d3..fa960291f713ad7dfc90e0b14bd44ce86c411c45 100644 (file)
@@ -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)