diff options
author | Alan Modra <amodra@gmail.com> | 2021-02-15 09:48:50 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-02-15 13:34:08 +1030 |
commit | 1781a9d0f3d0319abeeae73b1f1f78fbf3778739 (patch) | |
tree | 9284cb96c03408b02e12dfb7c006f251a43d3a5b /bfd/ChangeLog | |
parent | 8b78cbec3191c7f153d116fb2184ea6400b3a7b1 (diff) | |
download | gdb-1781a9d0f3d0319abeeae73b1f1f78fbf3778739.zip gdb-1781a9d0f3d0319abeeae73b1f1f78fbf3778739.tar.gz gdb-1781a9d0f3d0319abeeae73b1f1f78fbf3778739.tar.bz2 |
nds32_elf_get_relocated_section_contents
nds32_elf_get_relocated_section_contents uses nds32_get_section_contents
to read sections contents, but nds32_get_section_contents has the wrong
behaviour as it calls bfd_malloc_and_get_section. That function always
mallocs its output buffer, whereas get_relocated_section_contents must
support an already allocated buffer.
bfd/
* elf32-nds32.c (nds32_get_section_contents): Replace
bfd_malloc_and_get_section with bfd_get_full_section_contents.
(nds32_elf_relax_delete_blanks): Init contents.
(nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
binutils/
* testsuite/binutils-all/compress.exp: Remove nds32 xfails.
* testsuite/binutils-all/objdump.exp: Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7ff7eb0..cd018fe 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ 2021-02-15 Alan Modra <amodra@gmail.com> + * elf32-nds32.c (nds32_get_section_contents): Replace + bfd_malloc_and_get_section with bfd_get_full_section_contents. + (nds32_elf_relax_delete_blanks): Init contents. + (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise. + +2021-02-15 Alan Modra <amodra@gmail.com> + * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use bfd_get_full_section_contents. |