From: Daniel Jacobowitz Date: Tue, 22 Feb 2005 18:35:32 +0000 (+0000) Subject: * ldlang.c (section_already_linked): Don't call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ace66bb2fbf36c06516d3f7a781044a65890974b;p=binutils-gdb.git * ldlang.c (section_already_linked): Don't call bfd_section_already_linked for dynamic objects. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 4bf9e90a633..d7980c38b52 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-02-22 Daniel Jacobowitz + + * ldlang.c (section_already_linked): Don't call + bfd_section_already_linked for dynamic objects. + 2005-02-22 Alan Modra * ldexp.c: Warning fixes. diff --git a/ld/ldlang.c b/ld/ldlang.c index 878e15fab55..636dc7f5c47 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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); } /* The wild routines.