From 8aac889df882b567127678d1ea03c4e8d6c79e50 Mon Sep 17 00:00:00 2001 From: amodra Date: Sat, 1 May 2004 14:20:26 +0000 Subject: [PATCH] * section.c (bfd_make_section_anyway): Copy the whole bfd_hash_entry, not just "next" from existing entry. --- bfd/ChangeLog | 5 +++++ bfd/section.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e7f9d7a467..19e9c700ff 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-05-01 Alan Modra + + * section.c (bfd_make_section_anyway): Copy the whole + bfd_hash_entry, not just "next" from existing entry. + 2004-04-30 H.J. Lu * elf.c (bfd_section_from_shdr): Maintain the section order in diff --git a/bfd/section.c b/bfd/section.c index 0236f08756..58508a27e4 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; } -- 2.11.0