Select MIPS ABi based upon abiflags rather than e_flags.
authorMatthew Fortune <matthew.fortune@imgtec.com>
Wed, 26 Aug 2015 13:42:56 +0000 (14:42 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 26 Aug 2015 13:42:56 +0000 (14:42 +0100)
commitc97c330ba8e80776c546e5f562916bf077e358b3
tree4f99986f00c36044363d1935e7cc3418d2c3a101
parent2d011dc1696f38580ca08cdccf9cb8147527063a
Select MIPS ABi based upon abiflags rather than e_flags.

bfd PR ld/18401
* elfxx-mips.c (bfd_mips_isa_ext_mach): New function: Converts an
ISA value to a bfd machine number.
(bfd_mips_isa_ext): Update the ISA level and revision if
necessary.  Use mips_mach_extends_p to decide if the ISA extension
needs to be set.
(_bfd_mips_elf_merge_private_bfd_data): Allow the ISA extension to
be inferred from the ABI setting.  Set the ISA level from the
maximum of the incoming and outgoing ISA levels.

tests
* ld-mips-elf/mips-elf-flags.exp: Add more ISA conflict tests.
bfd/ChangeLog
bfd/elfxx-mips.c
ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/mips-elf-flags.exp