aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-02-22 18:35:32 +0000
committerDaniel Jacobowitz <drow@false.org>2005-02-22 18:35:32 +0000
commitace66bb2fbf36c06516d3f7a781044a65890974b (patch)
treefd0c2d7b4dca0bb95ec7b5454f89841b80f3234a
parenta5e0d2699d4423026958f6fef00c68202e56686e (diff)
downloadgdb-ace66bb2fbf36c06516d3f7a781044a65890974b.zip
gdb-ace66bb2fbf36c06516d3f7a781044a65890974b.tar.gz
gdb-ace66bb2fbf36c06516d3f7a781044a65890974b.tar.bz2
* ldlang.c (section_already_linked): Don't call
bfd_section_already_linked for dynamic objects.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4bf9e90..d7980c3 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 878e15f..636dc7f 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.