aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-05-01 14:20:26 +0000
committerAlan Modra <amodra@gmail.com>2004-05-01 14:20:26 +0000
commit73499ab8416b2df2f1cc36de76bb217b4c1cc5bd (patch)
treeb9c24ef1359d5caa05b78a65564dcda2179b189e /bfd/section.c
parentc8864fa247bb6a884fdbd3030cc029e7bce7010f (diff)
downloadgdb-73499ab8416b2df2f1cc36de76bb217b4c1cc5bd.zip
gdb-73499ab8416b2df2f1cc36de76bb217b4c1cc5bd.tar.gz
gdb-73499ab8416b2df2f1cc36de76bb217b4c1cc5bd.tar.bz2
* section.c (bfd_make_section_anyway): Copy the whole
bfd_hash_entry, not just "next" from existing entry.
Diffstat (limited to 'bfd/section.c')
-rw-r--r--bfd/section.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/section.c b/bfd/section.c
index 0236f08..58508a2 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -955,7 +955,7 @@ bfd_make_section_anyway (bfd *abfd, const char *name)
if (new_sh == NULL)
return NULL;
- new_sh->root.next = sh->root.next;
+ new_sh->root = sh->root;
sh->root.next = &new_sh->root;
newsect = &new_sh->section;
}