diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-10-11 14:58:19 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-10-11 14:58:19 +0000 |
commit | 5bab058dff8c0ff134868cc6fdcbe6afe58d7ebc (patch) | |
tree | ab20e9fee6652e04db1c2c5847c291a208c72132 | |
parent | f3ae41039a6aebd05507eae29c1d67d3e4c526cd (diff) | |
download | binutils-redhat-5bab058dff8c0ff134868cc6fdcbe6afe58d7ebc.tar.gz |
* ldlang.c (lang_append_dynamic_list): When appending, add all elements
of the dynamic list rather than just the first entry.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldlang.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 3d6d4a66c9..d78ef41477 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2006-10-11 Jakub Jelinek <jakub@redhat.com> + + * ldlang.c (lang_append_dynamic_list): When appending, add all elements + of the dynamic list rather than just the first entry. + 2006-10-10 Bob Wilson <bob.wilson@acm.org> * emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable. diff --git a/ld/ldlang.c b/ld/ldlang.c index 4ce3c935c1..62a4ed7041 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 |