aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2024-12-02 09:44:54 +0000
committerMatthieu Longo <matthieu.longo@arm.com>2024-12-02 15:18:41 +0000
commit3c3c75874777b4a663994c259e7d5e651c6214e0 (patch)
treecaf93761da48b2b307af9a86e4c0e397cd09d861 /ld
parent83c22eb44e4b9c594e7d7590d1a9f1a509ae7b0a (diff)
downloadbinutils-3c3c75874777b4a663994c259e7d5e651c6214e0.zip
binutils-3c3c75874777b4a663994c259e7d5e651c6214e0.tar.gz
binutils-3c3c75874777b4a663994c259e7d5e651c6214e0.tar.bz2
aarch64: delete duplicated BTI tests
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-aarch64/protections/bti-plt-1.d32
-rw-r--r--ld/testsuite/ld-aarch64/protections/bti-plt-2.d12
-rw-r--r--ld/testsuite/ld-aarch64/protections/bti-plt-4.d11
-rw-r--r--ld/testsuite/ld-aarch64/protections/bti-plt-5.d28
-rw-r--r--ld/testsuite/ld-aarch64/protections/bti-plt-7.d17
-rw-r--r--ld/testsuite/ld-aarch64/protections/bti-warn.d17
6 files changed, 0 insertions, 117 deletions
diff --git a/ld/testsuite/ld-aarch64/protections/bti-plt-1.d b/ld/testsuite/ld-aarch64/protections/bti-plt-1.d
deleted file mode 100644
index b7d5f51..0000000
--- a/ld/testsuite/ld-aarch64/protections/bti-plt-1.d
+++ /dev/null
@@ -1,32 +0,0 @@
-#name: Check -z force-bti emits BTI PLT (shared)
-#source: bti-plt-1.s
-#target: [check_shared_lib_support]
-#as: -mabi=lp64 -defsym __property_bti__=1
-#ld: -shared -z force-bti -T bti-plt.ld
-#objdump: -dr -j .plt
-
-[^:]*: *file format elf64-.*aarch64
-
-Disassembly of section \.plt:
-
-[0-9]+ <.*>:
-.*: d503245f bti c
-.*: a9bf7bf0 stp x16, x30, \[sp, #-16\]!
-.*: 90000090 adrp x16, 28000 <_GLOBAL_OFFSET_TABLE_>
-.*: f9400e11 ldr x17, \[x16, #24\]
-.*: 91006210 add x16, x16, #0x18
-.*: d61f0220 br x17
-.*: d503201f nop
-.*: d503201f nop
-
-[0-9]+ <.*>:
-.*: 90000090 adrp x16, 28000 <_GLOBAL_OFFSET_TABLE_>
-.*: f9401211 ldr x17, \[x16, #32\]
-.*: 91008210 add x16, x16, #0x20
-.*: d61f0220 br x17
-
-[0-9]+ <.*>:
-.*: 90000090 adrp x16, 28000 <_GLOBAL_OFFSET_TABLE_>
-.*: f9401611 ldr x17, \[x16, #40\]
-.*: 9100a210 add x16, x16, #0x28
-.*: d61f0220 br x17
diff --git a/ld/testsuite/ld-aarch64/protections/bti-plt-2.d b/ld/testsuite/ld-aarch64/protections/bti-plt-2.d
deleted file mode 100644
index e404d53..0000000
--- a/ld/testsuite/ld-aarch64/protections/bti-plt-2.d
+++ /dev/null
@@ -1,12 +0,0 @@
-#name: Check -z force-bti emits BTI feature (shared)
-#source: bti-plt-1.s
-#source: bti-plt-2.s
-#target: [check_shared_lib_support]
-#as: -mabi=lp64 -defsym __property_bti__=1
-#ld: -shared -z force-bti -T bti-plt.ld
-#readelf: -n
-
-Displaying notes found in: .note.gnu.property
-[ ]+Owner[ ]+Data size[ ]+Description
- GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0
- Properties: AArch64 feature: BTI
diff --git a/ld/testsuite/ld-aarch64/protections/bti-plt-4.d b/ld/testsuite/ld-aarch64/protections/bti-plt-4.d
deleted file mode 100644
index 24a213b..0000000
--- a/ld/testsuite/ld-aarch64/protections/bti-plt-4.d
+++ /dev/null
@@ -1,11 +0,0 @@
-#name: Check -z force-bti emits BTI feature (exec)
-#source: bti-plt-1.s
-#target: [check_shared_lib_support]
-#as: -mabi=lp64 -defsym __property_bti__=1
-#ld: -z force-bti -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so
-#readelf: -n
-
-Displaying notes found in: .note.gnu.property
-[ ]+Owner[ ]+Data size[ ]+Description
- GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0
- Properties: AArch64 feature: BTI
diff --git a/ld/testsuite/ld-aarch64/protections/bti-plt-5.d b/ld/testsuite/ld-aarch64/protections/bti-plt-5.d
deleted file mode 100644
index b26fe5b..0000000
--- a/ld/testsuite/ld-aarch64/protections/bti-plt-5.d
+++ /dev/null
@@ -1,28 +0,0 @@
-#name: BTI PLT with only GNU PROP
-#source: property-bti-pac1.s
-#as: -mabi=lp64
-#ld: -e _start -L./tmpdir -lbti-plt-so
-#objdump: -dr -j .plt
-#target: *linux*
-
-[^:]*: *file format elf64-.*aarch64
-
-Disassembly of section \.plt:
-
-[0-9a-f]+ <.*>:
-.*: d503245f bti c
-.*: a9bf7bf0 stp x16, x30, \[sp, #-16\]!
-.*: 90000090 adrp x16, 410000 <.*>
-.*: f9...... ldr x17, \[x16, #....\]
-.*: 91...... add x16, x16, #0x...
-.*: d61f0220 br x17
-.*: d503201f nop
-.*: d503201f nop
-
-[0-9a-f]+ <.*>:
-.*: d503245f bti c
-.*: 90000090 adrp x16, 410000 <.*>
-.*: f9...... ldr x17, \[x16, #....\]
-.*: 91...... add x16, x16, #0x...
-.*: d61f0220 br x17
-.*: d503201f nop
diff --git a/ld/testsuite/ld-aarch64/protections/bti-plt-7.d b/ld/testsuite/ld-aarch64/protections/bti-plt-7.d
deleted file mode 100644
index 6384b86..0000000
--- a/ld/testsuite/ld-aarch64/protections/bti-plt-7.d
+++ /dev/null
@@ -1,17 +0,0 @@
-#name: Warn when neither inputs has GNU NOTE BTI
-#source: property-bti-pac2.s
-#source: ../plt_mapping_symbol.s
-#target: [check_shared_lib_support]
-#as: -mabi=lp64
-#ld: -shared -z force-bti
-#warning: .*plt_mapping_symbol.*: warning: BTI turned on by -z force-bti.*
-#warning: .*property-bti-pac2.*: warning: BTI turned on by -z force-bti.*
-#readelf: -n
-
-# Should warn about the missing input BTI NOTE but should
-# still mark output as BTI
-
-Displaying notes found in: .note.gnu.property
-[ ]+Owner[ ]+Data size[ ]+Description
- GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0
- Properties: AArch64 feature: BTI
diff --git a/ld/testsuite/ld-aarch64/protections/bti-warn.d b/ld/testsuite/ld-aarch64/protections/bti-warn.d
deleted file mode 100644
index 9ec6e12..0000000
--- a/ld/testsuite/ld-aarch64/protections/bti-warn.d
+++ /dev/null
@@ -1,17 +0,0 @@
-#name: Warn when both have GNU prop but neither BTI
-#source: property-bti-pac1.s
-#source: bti-plt-2.s
-#target: [check_shared_lib_support]
-#as: -mabi=lp64 --defsym __mask_property_bti__=1 --defsym __property_pac__=1
-#ld: -shared -z force-bti
-#warning: .*property-bti-pac1.*: warning: BTI turned on by -z force-bti.*
-#warning: .*bti-plt-2.*: warning: BTI turned on by -z force-bti.*
-#readelf: -n
-
-# Should warn about the missing input BTI NOTE but should
-# still mark output as BTI
-
-Displaying notes found in: .note.gnu.property
-[ ]+Owner[ ]+Data size[ ]+Description
- GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0
- Properties: AArch64 feature: BTI, PAC