OSDN Git Service

2002-03-26 H.J. Lu (hjl@gnu.org)
authorH.J. Lu <hjl@lucon.org>
Tue, 26 Mar 2002 18:13:54 +0000 (18:13 +0000)
committerH.J. Lu <hjl@lucon.org>
Tue, 26 Mar 2002 18:13:54 +0000 (18:13 +0000)
* elflink.h (elf_link_input_bfd): Revert the last change since
the gcc exception handling isn't fixed yet.

bfd/ChangeLog
bfd/elflink.h

index a6dc649..b28e978 100644 (file)
@@ -1,5 +1,10 @@
 2002-03-26  H.J. Lu  (hjl@gnu.org)
 
+       * elflink.h (elf_link_input_bfd): Revert the last change since
+       the gcc exception handling isn't fixed yet.
+
+2002-03-26  H.J. Lu  (hjl@gnu.org)
+
        * elflink.h (elf_link_input_bfd): Complain about relocations
        against local symbols in discarded sections.
 
index fa96029..43abe17 100644 (file)
@@ -6662,7 +6662,8 @@ 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)
+                         if ((o->flags & SEC_DEBUGGING) != 0
+                             || (sec->flags & SEC_LINK_ONCE) != 0)
                            {
 #if BFD_VERSION_DATE > 20021005
                              (*finfo->info->callbacks->warning)