Modernise _bfd_elf_mips_get_relocated_section_contents
authorAlan Modra <amodra@gmail.com>
Sun, 14 Feb 2021 09:27:05 +0000 (19:57 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 14 Feb 2021 12:24:34 +0000 (22:54 +1030)
commitd7a7af8ff45510c2ac1721d65229ed7d89f08c6a
tree4929d6045bc399f02f23b8eaee3727fed7865cfc
parent1944212b426d2e13cc4bb24aa1a850bbc572e624
Modernise _bfd_elf_mips_get_relocated_section_contents

In particular, bfd_get_full_section_contents rather than
bfd_get_section_contents so that compressed sections are handled
properly.

Necessary for mips if objdump is to not cache debug sections.

* elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
all fixes to bfd_generic_get_relocated_section_contents since this
function was split out.
bfd/ChangeLog
bfd/elfxx-mips.c