diff options
author | Alan Modra <amodra@gmail.com> | 2016-06-24 11:20:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-06-24 23:05:48 +0930 |
commit | 78da3bc1eeb8ed227f86154ef915635fe9047a64 (patch) | |
tree | 710952e28ad7f10a1c0543ecdc3d72045537695f /ld/testsuite/ld-aarch64 | |
parent | 5c0ff16372013f4865230b90344eff39c14fdc43 (diff) | |
download | gdb-78da3bc1eeb8ed227f86154ef915635fe9047a64.zip gdb-78da3bc1eeb8ed227f86154ef915635fe9047a64.tar.gz gdb-78da3bc1eeb8ed227f86154ef915635fe9047a64.tar.bz2 |
aarch64 ld testsuite
Fixes failure on aarch64-rtems.
* testsuite/ld-aarch64/aarch64-elf.exp (aarch64_choose_ilp32_emul):
Don't error out, always return an emulation.
Diffstat (limited to 'ld/testsuite/ld-aarch64')
-rw-r--r-- | ld/testsuite/ld-aarch64/aarch64-elf.exp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp index b27da52..ab84f01 100644 --- a/ld/testsuite/ld-aarch64/aarch64-elf.exp +++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp @@ -46,18 +46,16 @@ set aarch64elftests { } proc aarch64_choose_ilp32_emul {} { - if [istarget aarch64-*-linux*] then { - return "aarch64linux32" - } elseif [istarget aarch64-*-elf] { - return "aarch64elf32" - } elseif [istarget aarch64_be-*-linux*] { - return "aarch64linux32b" - } elseif [istarget aarch64_be-*-elf] { + if [istarget *linux*] then { + if [istarget aarch64_be-*] { + return "aarch64linux32b" + } + return "aarch64linux32" + } + if [istarget aarch64_be-*] { return "aarch64elf32b" - } else { - perror "Unknown target triple." - exit 1 } + return "aarch64elf32" } run_ld_link_tests $aarch64elftests |