aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorClément Chigot <chigot@adacore.com>2022-10-27 10:45:00 +0200
committerClément Chigot <chigot@adacore.com>2023-03-16 15:01:05 +0100
commitf7a5019a918c194c576781da71e98be788d69bbb (patch)
tree4b11ee13d91888c976863d237c292377e13ad9f3 /ld
parent7dedc6daabe69398591aea89a6a16134c70315ca (diff)
downloadgdb-f7a5019a918c194c576781da71e98be788d69bbb.zip
gdb-f7a5019a918c194c576781da71e98be788d69bbb.tar.gz
gdb-f7a5019a918c194c576781da71e98be788d69bbb.tar.bz2
ld/testsuite: disable ilp32 tests for aarch64-qnx
aarch64nto32 emulation isn't supported. The tests will then fall back on aarch64elf32. It does work but some extra warnings are being generated because the "-z relro" being added aarch64nto but ignored by aarch64elf32 emulation. Skip the tests to avoid any problems. ld/ChangeLog: * testsuite/ld-aarch64/emit-relocs-112-overflow.d: Skip for aarch64nto. * testsuite/ld-aarch64/emit-relocs-112.d: Likewise. * testsuite/ld-aarch64/emit-relocs-113.d: Likewise. * testsuite/ld-aarch64/emit-relocs-114-overflow.d: Likewise. * testsuite/ld-aarch64/emit-relocs-114.d: Likewise. * testsuite/ld-aarch64/emit-relocs-115.d: Likewise. * testsuite/ld-aarch64/emit-relocs-116-overflow.d: Likewise. * testsuite/ld-aarch64/emit-relocs-116.d: Likewise. * testsuite/ld-aarch64/emit-relocs-117.d: Likewise. * testsuite/ld-aarch64/emit-relocs-118-overflow.d: Likewise. * testsuite/ld-aarch64/emit-relocs-118.d: Likewise. * testsuite/ld-aarch64/emit-relocs-119.d: Likewise. * testsuite/ld-aarch64/emit-relocs-22.d: Likewise. * testsuite/ld-aarch64/emit-relocs-23.d: Likewise. * testsuite/ld-aarch64/emit-relocs-28.d: Likewise. * testsuite/ld-aarch64/emit-relocs-86-overflow.d: Likewise. * testsuite/ld-aarch64/emit-relocs-86.d: Likewise. * testsuite/ld-aarch64/emit-relocs-87.d: Likewise. * testsuite/ld-aarch64/emit-relocs-88-overflow.d: Likewise. * testsuite/ld-aarch64/emit-relocs-88.d: Likewise. * testsuite/ld-aarch64/emit-relocs-89.d: Likewise. * testsuite/ld-aarch64/emit-relocs-90-overflow.d: Likewise. * testsuite/ld-aarch64/emit-relocs-90.d: Likewise. * testsuite/ld-aarch64/emit-relocs-92.d: Likewise. * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-all-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: Likewise. * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-112-overflow.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-112.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-113.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-114-overflow.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-114.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-115.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-116-overflow.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-116.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-117.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-118-overflow.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-118.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-119.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-22.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-23.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-28.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-86-overflow.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-86.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-87.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-88-overflow.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-88.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-89.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-90-overflow.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-90.d1
-rw-r--r--ld/testsuite/ld-aarch64/emit-relocs-92.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-desc-ie-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-all-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d1
-rw-r--r--ld/testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d1
39 files changed, 39 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-112-overflow.d b/ld/testsuite/ld-aarch64/emit-relocs-112-overflow.d
index b66812b..4fbe787 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-112-overflow.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-112-overflow.d
@@ -1,5 +1,6 @@
#source: emit-relocs-552-overflow.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#error: .*\(.text\+0x\d+\): relocation truncated to fit: R_AARCH64_P32_TLSLE_LDST8_TPREL_LO12 against symbol `v2' .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-112.d b/ld/testsuite/ld-aarch64/emit-relocs-112.d
index 8379cf2..ce6be99 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-112.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-112.d
@@ -1,6 +1,7 @@
#source: emit-relocs-552.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
00010000 <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-113.d b/ld/testsuite/ld-aarch64/emit-relocs-113.d
index 60e40e6..b892bb6 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-113.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-113.d
@@ -1,6 +1,7 @@
#source: emit-relocs-553.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
00010000 <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-114-overflow.d b/ld/testsuite/ld-aarch64/emit-relocs-114-overflow.d
index 5926173..463c0f1 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-114-overflow.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-114-overflow.d
@@ -1,5 +1,6 @@
#source: emit-relocs-554-overflow.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#error: .*\(.text\+0x\d+\): relocation truncated to fit: R_AARCH64_P32_TLSLE_LDST16_TPREL_LO12 against symbol `v2' .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-114.d b/ld/testsuite/ld-aarch64/emit-relocs-114.d
index 96a2501..f883afa 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-114.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-114.d
@@ -1,6 +1,7 @@
#source: emit-relocs-554.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
00010000 <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-115.d b/ld/testsuite/ld-aarch64/emit-relocs-115.d
index 95a6e31..da04584 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-115.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-115.d
@@ -1,6 +1,7 @@
#source: emit-relocs-555.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
00010000 <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-116-overflow.d b/ld/testsuite/ld-aarch64/emit-relocs-116-overflow.d
index f060c17..f2ed5fc 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-116-overflow.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-116-overflow.d
@@ -1,5 +1,6 @@
#source: emit-relocs-556-overflow.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#error: .*\(.text\+0x\d+\): relocation truncated to fit: R_AARCH64_P32_TLSLE_LDST32_TPREL_LO12 against symbol `v2' .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-116.d b/ld/testsuite/ld-aarch64/emit-relocs-116.d
index bd2d6aa..4123d98 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-116.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-116.d
@@ -1,6 +1,7 @@
#source: emit-relocs-556.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
00010000 <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-117.d b/ld/testsuite/ld-aarch64/emit-relocs-117.d
index a3bb606..6aede66 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-117.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-117.d
@@ -1,6 +1,7 @@
#source: emit-relocs-557.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
00010000 <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-118-overflow.d b/ld/testsuite/ld-aarch64/emit-relocs-118-overflow.d
index 1eedac1..61f48e4 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-118-overflow.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-118-overflow.d
@@ -1,5 +1,6 @@
#source: emit-relocs-558-overflow.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#error: .*\(.text\+0x\d+\): relocation truncated to fit: R_AARCH64_P32_TLSLE_LDST64_TPREL_LO12 against symbol `v2' .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-118.d b/ld/testsuite/ld-aarch64/emit-relocs-118.d
index 9061974..c5ec192 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-118.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-118.d
@@ -1,6 +1,7 @@
#source: emit-relocs-558.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
00010000 <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-119.d b/ld/testsuite/ld-aarch64/emit-relocs-119.d
index 20e05eb..cab4269 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-119.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-119.d
@@ -1,6 +1,7 @@
#source: emit-relocs-559.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
00010000 <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-22.d b/ld/testsuite/ld-aarch64/emit-relocs-22.d
index b1e69e0..01da7ac 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-22.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-22.d
@@ -1,6 +1,7 @@
#source: emit-relocs-22.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld --defsym foo1=0x12345 --defsym foo2=0x1234 -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
.*: +file format .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-23.d b/ld/testsuite/ld-aarch64/emit-relocs-23.d
index abb939d..466081e 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-23.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-23.d
@@ -1,6 +1,7 @@
#source: emit-relocs-23.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld --defsym foo=0x12345678 -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
.*: +file format .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-28.d b/ld/testsuite/ld-aarch64/emit-relocs-28.d
index fd5c71c..cfc887a 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-28.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-28.d
@@ -1,6 +1,7 @@
#source: emit-relocs-28.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] --defsym globala=0x11000 --defsym globalb=0x45000 --defsym globalc=0x1234 -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
.*: +file format .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-86-overflow.d b/ld/testsuite/ld-aarch64/emit-relocs-86-overflow.d
index a9781a9..924a379 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-86-overflow.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-86-overflow.d
@@ -1,5 +1,6 @@
#source: emit-relocs-86-overflow.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#error: .*\(.text\+0x\d+\): relocation truncated to fit: R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12 against symbol `v2' .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-86.d b/ld/testsuite/ld-aarch64/emit-relocs-86.d
index 0047785..bd883d6 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-86.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-86.d
@@ -1,6 +1,7 @@
#source: emit-relocs-86.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
.* <\.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-87.d b/ld/testsuite/ld-aarch64/emit-relocs-87.d
index dce85b6..ae6bc7e 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-87.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-87.d
@@ -1,6 +1,7 @@
#source: emit-relocs-87.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
.* <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-88-overflow.d b/ld/testsuite/ld-aarch64/emit-relocs-88-overflow.d
index cedf505..cc0c02d 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-88-overflow.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-88-overflow.d
@@ -1,5 +1,6 @@
#source: emit-relocs-88-overflow.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#error: .*\(.text\+0x\d+\): relocation truncated to fit: R_AARCH64_P32_TLSLD_MOVW_DTPREL_G0 against symbol `v2' .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-88.d b/ld/testsuite/ld-aarch64/emit-relocs-88.d
index a6f6320..0fda705 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-88.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-88.d
@@ -1,6 +1,7 @@
#source: emit-relocs-88.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
.* <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-89.d b/ld/testsuite/ld-aarch64/emit-relocs-89.d
index 33cf0cc..fc1cddc 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-89.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-89.d
@@ -1,6 +1,7 @@
#source: emit-relocs-89.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
.* <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-90-overflow.d b/ld/testsuite/ld-aarch64/emit-relocs-90-overflow.d
index f5f65b5..c43898f 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-90-overflow.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-90-overflow.d
@@ -1,5 +1,6 @@
#source: emit-relocs-90-overflow.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#error: .*\(.text\+0x\d+\): relocation truncated to fit: R_AARCH64_P32_TLSLD_ADD_DTPREL_HI12 against symbol `v2' .*
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-90.d b/ld/testsuite/ld-aarch64/emit-relocs-90.d
index d6ef58b..cf301d8 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-90.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-90.d
@@ -1,6 +1,7 @@
#source: emit-relocs-90.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
.* <.text>:
diff --git a/ld/testsuite/ld-aarch64/emit-relocs-92.d b/ld/testsuite/ld-aarch64/emit-relocs-92.d
index 0ff532b..a0b582a 100644
--- a/ld/testsuite/ld-aarch64/emit-relocs-92.d
+++ b/ld/testsuite/ld-aarch64/emit-relocs-92.d
@@ -1,6 +1,7 @@
#source: emit-relocs-92.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -e0 --emit-relocs
+#notarget: *-*-nto*
#objdump: -dr
#...
.* <.text>:
diff --git a/ld/testsuite/ld-aarch64/tls-desc-ie-ilp32.d b/ld/testsuite/ld-aarch64/tls-desc-ie-ilp32.d
index 2cf42dc..911f50e 100644
--- a/ld/testsuite/ld-aarch64/tls-desc-ie-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-desc-ie-ilp32.d
@@ -2,6 +2,7 @@
#target: [check_shared_lib_support]
#as: -mabi=ilp32
#ld: -shared -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: 90000080 adrp x0, 20000 <_GLOBAL_OFFSET_TABLE_>
diff --git a/ld/testsuite/ld-aarch64/tls-relax-all-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-all-ilp32.d
index 62faed4..2fb172d 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-all-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-all-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-all.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: a9bf7bfd stp x29, x30, \[sp, #-16\]!
diff --git a/ld/testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d
index 340206a..7728178 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-gd-ie.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 tmpdir/tls-sharedlib-ilp32.so
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: 90000080 adrp x0, 20000 <_GLOBAL_OFFSET_TABLE_>
diff --git a/ld/testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d
index dd91cb4..4b28fc5 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-gd-le.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: 52a00000 movz w0, #0x0, lsl #16
diff --git a/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d
index 903b0b4..4dca8c5 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-gdesc-le-2.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: 52a00000 movz w0, #0x0, lsl #16
diff --git a/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d
index 020554b..e9053fd 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-gdesc-le.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: 52a00000 movz w0, #0x0, lsl #16
diff --git a/ld/testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d
index 71ee72c..7929e3f 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-ie-le-2.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: d53bd041 mrs x1, tpidr_el0
diff --git a/ld/testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d
index e0bc05d..987559a 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-ie-le-3.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: d53bd042 mrs x2, tpidr_el0
diff --git a/ld/testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d
index ede3d8c..b1e728c 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-ie-le.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: d53bd041 mrs x1, tpidr_el0
diff --git a/ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d
index 0f86d93..2b80db5 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-ld-le-small-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-ld-le-small.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: 910003fd mov x29, sp
diff --git a/ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d b/ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d
index e2a4250..445e79d 100644
--- a/ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-relax-ld-le-tiny-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-relax-ld-le-tiny.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
+10000: 910003fd mov x29, sp
diff --git a/ld/testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d b/ld/testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d
index 3dffa1b..e8059bb 100644
--- a/ld/testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-tiny-desc-ie.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 tmpdir/tls-sharedlib-ilp32.so
+#notarget: *-*-nto*
#objdump: -dr
#...
diff --git a/ld/testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d b/ld/testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d
index 79a6f5c..e9211b2 100644
--- a/ld/testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-tiny-desc-le.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...
diff --git a/ld/testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d b/ld/testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d
index 6317152..f79b5eb 100644
--- a/ld/testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-tiny-gd-ie.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0 tmpdir/tls-sharedlib-ilp32.so
+#notarget: *-*-nto*
#objdump: -dr
#...
diff --git a/ld/testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d b/ld/testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d
index 5213a04..cc13bbd 100644
--- a/ld/testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d
+++ b/ld/testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d
@@ -1,6 +1,7 @@
#source: tls-tiny-gd-le.s
#as: -mabi=ilp32
#ld: -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
+#notarget: *-*-nto*
#objdump: -dr
#...