Re: asan: mips_gprel_reloc segfault
authorAlan Modra <amodra@gmail.com>
Fri, 3 Jun 2022 03:42:01 +0000 (13:12 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 3 Jun 2022 03:42:01 +0000 (13:12 +0930)
commit6b8b24bb688e53e251bbe2f3f9ddc44bca122bde
tree4378d4a258584e6a399dadab81fffec0769fa81b
parent679dc6e71647adf2719c411de5006358d27978b7
Re: asan: mips_gprel_reloc segfault

Similarly for the elf mips support.

* elf32-mips.c (mips_elf_final_gp): Don't segfault on symbols
in any of the bfd_is_const_section sections.
* elf64-mips.c (mips_elf64_final_gp): Likewise.
* elfn32-mips.c (mips_elf_final_gp): Likewise.
bfd/elf32-mips.c
bfd/elf64-mips.c
bfd/elfn32-mips.c