mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user