diff options
author | YunQiang Su <yunqiang.su@cipunited.com> | 2023-04-18 21:49:22 +0800 |
---|---|---|
committer | YunQiang Su <yunqiang.su@cipunited.com> | 2023-04-23 14:32:43 +0800 |
commit | 9171de358f230b64646bbb525a74e5f8e3dbe0dc (patch) | |
tree | 790cfab7508b4b92c546dedc572745bf3b6fb2e7 /gas | |
parent | 32f1c80375ebe8ad25d9805ee5889f0006c51e59 (diff) | |
download | gdb-9171de358f230b64646bbb525a74e5f8e3dbe0dc.zip gdb-9171de358f230b64646bbb525a74e5f8e3dbe0dc.tar.gz gdb-9171de358f230b64646bbb525a74e5f8e3dbe0dc.tar.bz2 |
MIPS: default output r6 obj if the triple is r6
If the triple is mipsisa32r6* or mipsisa64r6*, ld/as should output
r6 objects by default.
The triples with vendor `img` should do same.
The examples include:
as xx.s -o xx.o
ld -r -b binary xx.dat -o xx.o
Diffstat (limited to 'gas')
-rwxr-xr-x | gas/configure | 9 | ||||
-rw-r--r-- | gas/configure.ac | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gas/configure b/gas/configure index 868f4a9..0daa80d 100755 --- a/gas/configure +++ b/gas/configure @@ -12211,6 +12211,15 @@ _ACEOF use_e_mips_abi_o32=1 ;; esac + # If Vendor is IMG, then MIPSr6 is used + case ${target} in + mips*64*-img-*) + mips_cpu=mips64r6 + ;; + mips*-img-*) + mips_cpu=mips32r6 + ;; + esac # Decide whether to generate 32-bit or 64-bit code by default. # Used to resolve -march=from-abi when an embedded ABI is selected. case ${target} in diff --git a/gas/configure.ac b/gas/configure.ac index 03728ff..2b91f9e 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -380,6 +380,15 @@ changequote([,])dnl use_e_mips_abi_o32=1 ;; esac + # If Vendor is IMG, then MIPSr6 is used + case ${target} in + mips*64*-img-*) + mips_cpu=mips64r6 + ;; + mips*-img-*) + mips_cpu=mips32r6 + ;; + esac # Decide whether to generate 32-bit or 64-bit code by default. # Used to resolve -march=from-abi when an embedded ABI is selected. case ${target} in |