]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elfn32-mips.c
PR binutils/22875: MIPS/ELF: Also fail with relocation placeholders
authorMaciej W. Rozycki <macro@mips.com>
Wed, 4 Apr 2018 01:00:48 +0000 (02:00 +0100)
committerMaciej W. Rozycki <macro@mips.com>
Wed, 4 Apr 2018 01:00:48 +0000 (02:00 +0100)
commit7ed6f92aaffdcc0995b0247379fb8ea621854dce
tree2c60097492778aeee83be6804d215e9b48eca25f
parent270baac0079c128ca6780098c086444d115f4afa
PR binutils/22875: MIPS/ELF: Also fail with relocation placeholders

Do not consider placeholder EMPTY_HOWTO relocation entries valid in
`rtype_to_howto' MIPS handlers.  Instead issue an unsupported relocation
type error and return a NULL howto as with relocations outside the three
ISA-specific min-max ranges.

bfd/
* elf32-mips.c (mips_elf32_rtype_to_howto): Also return
unsuccessfully for placeholder howtos.
* elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
* elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
bfd/ChangeLog
bfd/elf32-mips.c
bfd/elf64-mips.c
bfd/elfn32-mips.c