aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-10-11 14:58:19 +0000
committerJakub Jelinek <jakub@redhat.com>2006-10-11 14:58:19 +0000
commit07806542d5a4e7cc5364d82f3e2fc5e23ccdd1cb (patch)
tree3f17304e547f942fa303421ea835291a18053375 /ld/ldlang.c
parent861cf606cb1195b79daff1ae5a0202ea7b9679bd (diff)
downloadfsf-binutils-gdb-07806542d5a4e7cc5364d82f3e2fc5e23ccdd1cb.zip
fsf-binutils-gdb-07806542d5a4e7cc5364d82f3e2fc5e23ccdd1cb.tar.gz
fsf-binutils-gdb-07806542d5a4e7cc5364d82f3e2fc5e23ccdd1cb.tar.bz2
* ldlang.c (lang_append_dynamic_list): When appending, add all elements
of the dynamic list rather than just the first entry.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 4ce3c93..62a4ed7 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -6960,7 +6960,10 @@ lang_append_dynamic_list (struct bfd_elf_version_expr *dynamic)
{
if (link_info.dynamic)
{
- dynamic->next = link_info.dynamic->head.list;
+ struct bfd_elf_version_expr *tail;
+ for (tail = dynamic; tail->next != NULL; tail = tail->next)
+ ;
+ tail->next = link_info.dynamic->head.list;
link_info.dynamic->head.list = dynamic;
}
else