diff options
author | YunQiang Su <syq@debian.org> | 2019-07-25 16:34:58 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-07-25 16:34:58 +0100 |
commit | c7c860d2d29ca3e774c29f328d2af42eeb031958 (patch) | |
tree | 2d823df13b238d6b06b170025d17d7a986fcb725 /bfd/elfxx-mips.c | |
parent | 2e6be59c8de57c32260771ac5307968d18793a0a (diff) | |
download | gdb-c7c860d2d29ca3e774c29f328d2af42eeb031958.zip gdb-c7c860d2d29ca3e774c29f328d2af42eeb031958.tar.gz gdb-c7c860d2d29ca3e774c29f328d2af42eeb031958.tar.bz2 |
When linking binary files into MIPS executables, default to MIPS 3 emaulation for 64-bit objects.
PR 24832
* elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
mips inputs.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 29ae455..8e577b2 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -12193,6 +12193,12 @@ mips_set_isa_flags (bfd *abfd) switch (bfd_get_mach (abfd)) { default: + if (ABI_N32_P (abfd) || ABI_64_P (abfd)) + val = E_MIPS_ARCH_3; + else + val = E_MIPS_ARCH_1; + break; + case bfd_mach_mips3000: val = E_MIPS_ARCH_1; break; |