* ldlang.c (lang_append_dynamic_list): When appending, add all elements

of the dynamic list rather than just the first entry.
This commit is contained in:
Jakub Jelinek
2006-10-11 14:58:19 +00:00
parent 861cf606cb
commit 07806542d5
2 changed files with 9 additions and 1 deletions

View File

@@ -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