diff options
author | YunQiang Su <yunqiang.su@cipunited.com> | 2023-04-18 21:27:04 +0800 |
---|---|---|
committer | YunQiang Su <yunqiang.su@cipunited.com> | 2023-04-23 14:32:43 +0800 |
commit | 32f1c80375ebe8ad25d9805ee5889f0006c51e59 (patch) | |
tree | ca0c5e2eae95fd03048f9c0fa04f243d5c5d00b9 /ld | |
parent | fda507e61c40b25c339c2dbd7ace70498779f70a (diff) | |
download | gdb-32f1c80375ebe8ad25d9805ee5889f0006c51e59.zip gdb-32f1c80375ebe8ad25d9805ee5889f0006c51e59.tar.gz gdb-32f1c80375ebe8ad25d9805ee5889f0006c51e59.tar.bz2 |
MIPS: support mips*64 as CPU and gnuabi64 as ABI
For MIPS64r6 ports, Debian as an example, `mipsisa64r6el` is
used as the cpu name in triple.
Let's recognize them by `mips*64*(el)`.
For 64bit Ports, like Debian's mips64el and mips64r6el ports,
`gnuabi64` is used as the abi section.
Let's use N64 abi by default for the triple with gnuabi64.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/configure.tgt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ld/configure.tgt b/ld/configure.tgt index 34c9d67..4a71f67 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -580,11 +580,19 @@ mips*-*-vxworks*) targ_emul=elf32ebmipvxworks ;; mips*-*-windiss) targ_emul=elf32mipswindiss ;; -mips64*el-*-linux-*) targ_emul=elf32ltsmipn32 +mips*64*el-*-linux-gnuabi64) targ_emul=elf64ltsmip + targ_extra_emuls="elf32btsmipn32 elf32ltsmipn32 elf32ltsmip elf32btsmip elf64btsmip" + targ_extra_libpath=$targ_extra_emuls + ;; +mips*64*el-*-linux-*) targ_emul=elf32ltsmipn32 targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip" targ_extra_libpath=$targ_extra_emuls ;; -mips64*-*-linux-*) targ_emul=elf32btsmipn32 +mips*64*-*-linux-gnuabi64) targ_emul=elf64btsmip + targ_extra_emuls="elf32btsmipn32 elf32ltsmipn32 elf32btsmip elf32ltsmip elf64ltsmip" + targ_extra_libpath=$targ_extra_emuls + ;; +mips*64*-*-linux-*) targ_emul=elf32btsmipn32 targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip" targ_extra_libpath=$targ_extra_emuls ;; |