* ldlang.c (section_already_linked): Don't call
authorDaniel Jacobowitz <drow@false.org>
Tue, 22 Feb 2005 18:35:32 +0000 (18:35 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 22 Feb 2005 18:35:32 +0000 (18:35 +0000)
bfd_section_already_linked for dynamic objects.

ld/ChangeLog
ld/ldlang.c

index 4bf9e90a633d2f9ada40f8166f6122ef0144798d..d7980c38b524f38eaee91e2a64c178768a4fd6c6 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * ldlang.c (section_already_linked): Don't call
+       bfd_section_already_linked for dynamic objects.
+
 2005-02-22  Alan Modra  <amodra@bigpond.net.au>
 
        * ldexp.c: Warning fixes.
index 878e15fab5584e82572f4ba1c057a8066a8cca1c..636dc7f5c475a92e1bac8b7b1a3dbdb066cb606e 100644 (file)
@@ -1274,7 +1274,8 @@ section_already_linked (bfd *abfd, asection *sec, void *data)
       return;
     }
 
-  bfd_section_already_linked (abfd, sec);
+  if (!(abfd->flags & DYNAMIC))
+    bfd_section_already_linked (abfd, sec);
 }
 \f
 /* The wild routines.