forked from Imagelibrary/binutils-gdb
* elf64-ppc.c (ppc64_elf_edit_opd): When deleting relocs, adjust
rel_hdr.sh_size too.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2002-11-19 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf64-ppc.c (ppc64_elf_edit_opd): When deleting relocs, adjust
|
||||||
|
rel_hdr.sh_size too.
|
||||||
|
|
||||||
2002-11-18 Klee Dienes <kdienes@apple.com>
|
2002-11-18 Klee Dienes <kdienes@apple.com>
|
||||||
|
|
||||||
* Makefile.am (BFD32_LIBS): Add bfdwin.lo, bfdio.lo.
|
* Makefile.am (BFD32_LIBS): Add bfdwin.lo, bfdio.lo.
|
||||||
|
|||||||
@@ -3866,6 +3866,11 @@ ppc64_elf_edit_opd (obfd, info)
|
|||||||
|
|
||||||
sec->_cooked_size = wptr - sec->contents;
|
sec->_cooked_size = wptr - sec->contents;
|
||||||
sec->reloc_count = write_rel - relstart;
|
sec->reloc_count = write_rel - relstart;
|
||||||
|
/* Fudge the size too, as this is used later in
|
||||||
|
elf_bfd_final_link if we are emitting relocs. */
|
||||||
|
elf_section_data (sec)->rel_hdr.sh_size
|
||||||
|
= sec->reloc_count * elf_section_data (sec)->rel_hdr.sh_entsize;
|
||||||
|
BFD_ASSERT (elf_section_data (sec)->rel_hdr2 == NULL);
|
||||||
}
|
}
|
||||||
else if (elf_section_data (sec)->relocs != relstart)
|
else if (elf_section_data (sec)->relocs != relstart)
|
||||||
free (relstart);
|
free (relstart);
|
||||||
|
|||||||
Reference in New Issue
Block a user