* section.c (bfd_make_section_anyway): Copy the whole
bfd_hash_entry, not just "next" from existing entry.
This commit is contained in:
parent
c8864fa247
commit
73499ab841
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-05-01 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* section.c (bfd_make_section_anyway): Copy the whole
|
||||||
|
bfd_hash_entry, not just "next" from existing entry.
|
||||||
|
|
||||||
2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
|
2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* elf.c (bfd_section_from_shdr): Maintain the section order in
|
* elf.c (bfd_section_from_shdr): Maintain the section order in
|
||||||
|
|
|
@ -955,7 +955,7 @@ bfd_make_section_anyway (bfd *abfd, const char *name)
|
||||||
if (new_sh == NULL)
|
if (new_sh == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
new_sh->root.next = sh->root.next;
|
new_sh->root = sh->root;
|
||||||
sh->root.next = &new_sh->root;
|
sh->root.next = &new_sh->root;
|
||||||
newsect = &new_sh->section;
|
newsect = &new_sh->section;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue