aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-04-20 13:37:51 +0100
committerNick Clifton <nickc@redhat.com>2022-04-20 13:39:05 +0100
commit65daf5bed68f3e792e80f7c9a12871fd71da32a2 (patch)
treea55da6b2014760d60106975406377517a8133874 /ld/testsuite/ld-x86-64
parent72b580b8f48927cf7bc4cf8bb951aaeff637d0ee (diff)
downloadgdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.zip
gdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.tar.gz
gdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.tar.bz2
Add linker warning for when it creates an executable stack.
PR 29072
Diffstat (limited to 'ld/testsuite/ld-x86-64')
-rw-r--r--ld/testsuite/ld-x86-64/dummy.s1
-rw-r--r--ld/testsuite/ld-x86-64/foo.s1
-rw-r--r--ld/testsuite/ld-x86-64/gotpcrel1a.S1
-rw-r--r--ld/testsuite/ld-x86-64/gotpcrel1d.S1
-rw-r--r--ld/testsuite/ld-x86-64/pr19031b.S1
-rw-r--r--ld/testsuite/ld-x86-64/pr19319a.S1
-rw-r--r--ld/testsuite/ld-x86-64/pr19319b.S1
-rw-r--r--ld/testsuite/ld-x86-64/pr19827a.S2
-rw-r--r--ld/testsuite/ld-x86-64/pr19827b.S1
-rw-r--r--ld/testsuite/ld-x86-64/pr19969a.S1
-rw-r--r--ld/testsuite/ld-x86-64/pr19969b.S1
-rw-r--r--ld/testsuite/ld-x86-64/pr20550a.s1
-rw-r--r--ld/testsuite/ld-x86-64/pr20800a.S1
-rw-r--r--ld/testsuite/ld-x86-64/pr22791-1b.s1
-rw-r--r--ld/testsuite/ld-x86-64/pr26711.s1
-rw-r--r--ld/testsuite/ld-x86-64/property-6c.S1
-rw-r--r--ld/testsuite/ld-x86-64/property-no-copy.S1
-rw-r--r--ld/testsuite/ld-x86-64/property-stack.S1
-rw-r--r--ld/testsuite/ld-x86-64/property-unsorted-1.S1
-rw-r--r--ld/testsuite/ld-x86-64/property-unsorted-2.S1
-rw-r--r--ld/testsuite/ld-x86-64/property-x86-1.S1
-rw-r--r--ld/testsuite/ld-x86-64/property-x86-2.S1
-rw-r--r--ld/testsuite/ld-x86-64/start.s1
23 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/dummy.s b/ld/testsuite/ld-x86-64/dummy.s
index 403f980..66d3b2a 100644
--- a/ld/testsuite/ld-x86-64/dummy.s
+++ b/ld/testsuite/ld-x86-64/dummy.s
@@ -1 +1,2 @@
# Dummy
+ .section ".note.GNU-stack"
diff --git a/ld/testsuite/ld-x86-64/foo.s b/ld/testsuite/ld-x86-64/foo.s
index 461bfa4..01618d3 100644
--- a/ld/testsuite/ld-x86-64/foo.s
+++ b/ld/testsuite/ld-x86-64/foo.s
@@ -1,3 +1,4 @@
.globl foo
foo:
mov %eax, %ebx
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/gotpcrel1a.S b/ld/testsuite/ld-x86-64/gotpcrel1a.S
index 58dfbb1..62050e6 100644
--- a/ld/testsuite/ld-x86-64/gotpcrel1a.S
+++ b/ld/testsuite/ld-x86-64/gotpcrel1a.S
@@ -16,3 +16,4 @@ main:
addq $8, %rsp
jmp *myexit@GOTPCREL(%rip)
.size main, .-main
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/gotpcrel1d.S b/ld/testsuite/ld-x86-64/gotpcrel1d.S
index 4b01499..84a0c5d 100644
--- a/ld/testsuite/ld-x86-64/gotpcrel1d.S
+++ b/ld/testsuite/ld-x86-64/gotpcrel1d.S
@@ -24,3 +24,4 @@ __FUNCTION__.2219:
.size __FUNCTION__.2215, 4
__FUNCTION__.2215:
.string "bar"
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr19031b.S b/ld/testsuite/ld-x86-64/pr19031b.S
index ccc9125..7bc8b31 100644
--- a/ld/testsuite/ld-x86-64/pr19031b.S
+++ b/ld/testsuite/ld-x86-64/pr19031b.S
@@ -16,3 +16,4 @@ h:
.data
zed:
.long f - .
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr19319a.S b/ld/testsuite/ld-x86-64/pr19319a.S
index 438d7a5..01eca1b 100644
--- a/ld/testsuite/ld-x86-64/pr19319a.S
+++ b/ld/testsuite/ld-x86-64/pr19319a.S
@@ -9,3 +9,4 @@ foo:
.align 8
.long 4660
.long 22136
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr19319b.S b/ld/testsuite/ld-x86-64/pr19319b.S
index c9285c0..73b8e89 100644
--- a/ld/testsuite/ld-x86-64/pr19319b.S
+++ b/ld/testsuite/ld-x86-64/pr19319b.S
@@ -9,3 +9,4 @@ _start:
.align 8
.long 4660
.long 22136
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr19827a.S b/ld/testsuite/ld-x86-64/pr19827a.S
index cdf1d4b..43241f5 100644
--- a/ld/testsuite/ld-x86-64/pr19827a.S
+++ b/ld/testsuite/ld-x86-64/pr19827a.S
@@ -6,3 +6,5 @@ _start:
.globl foo
foo:
.byte 0
+
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr19827b.S b/ld/testsuite/ld-x86-64/pr19827b.S
index bb46e1d..897c149 100644
--- a/ld/testsuite/ld-x86-64/pr19827b.S
+++ b/ld/testsuite/ld-x86-64/pr19827b.S
@@ -1,2 +1,3 @@
.data
.dc.a foo
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr19969a.S b/ld/testsuite/ld-x86-64/pr19969a.S
index f318401..9038436 100644
--- a/ld/testsuite/ld-x86-64/pr19969a.S
+++ b/ld/testsuite/ld-x86-64/pr19969a.S
@@ -5,3 +5,4 @@
.size foo, 4
foo:
.long -1
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr19969b.S b/ld/testsuite/ld-x86-64/pr19969b.S
index eabeba2..abe96fa 100644
--- a/ld/testsuite/ld-x86-64/pr19969b.S
+++ b/ld/testsuite/ld-x86-64/pr19969b.S
@@ -12,3 +12,4 @@ _start:
.size foo_p, 4
foo_p:
.long foo
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr20550a.s b/ld/testsuite/ld-x86-64/pr20550a.s
index 4430398..167255a 100644
--- a/ld/testsuite/ld-x86-64/pr20550a.s
+++ b/ld/testsuite/ld-x86-64/pr20550a.s
@@ -4,3 +4,4 @@ _start:
movabsq $strings@SIZE, %rdx
.section .data.rel,"aw",@progbits
.quad strings
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr20800a.S b/ld/testsuite/ld-x86-64/pr20800a.S
index c4bcd80..95024e2 100644
--- a/ld/testsuite/ld-x86-64/pr20800a.S
+++ b/ld/testsuite/ld-x86-64/pr20800a.S
@@ -15,3 +15,4 @@ main:
popq %r15
ret
.size main, .-main
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr22791-1b.s b/ld/testsuite/ld-x86-64/pr22791-1b.s
index 9751db4..4bd7557 100644
--- a/ld/testsuite/ld-x86-64/pr22791-1b.s
+++ b/ld/testsuite/ld-x86-64/pr22791-1b.s
@@ -4,3 +4,4 @@
main:
movl foo(%rip), %eax
.size main, .-main
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/pr26711.s b/ld/testsuite/ld-x86-64/pr26711.s
index 8fa185d..9bbcdc5 100644
--- a/ld/testsuite/ld-x86-64/pr26711.s
+++ b/ld/testsuite/ld-x86-64/pr26711.s
@@ -31,3 +31,4 @@
.type foo, @function
foo:
ret
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/property-6c.S b/ld/testsuite/ld-x86-64/property-6c.S
index 41246d3..ab45318 100644
--- a/ld/testsuite/ld-x86-64/property-6c.S
+++ b/ld/testsuite/ld-x86-64/property-6c.S
@@ -21,3 +21,4 @@
5:
.p2align ALIGN
3:
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/property-no-copy.S b/ld/testsuite/ld-x86-64/property-no-copy.S
index 88cc252..c95054c 100644
--- a/ld/testsuite/ld-x86-64/property-no-copy.S
+++ b/ld/testsuite/ld-x86-64/property-no-copy.S
@@ -18,3 +18,4 @@
.long 0 /* pr_datasz. */
.p2align ALIGN
3:
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/property-stack.S b/ld/testsuite/ld-x86-64/property-stack.S
index 7f45654..ede808a 100644
--- a/ld/testsuite/ld-x86-64/property-stack.S
+++ b/ld/testsuite/ld-x86-64/property-stack.S
@@ -21,3 +21,4 @@
5:
.p2align ALIGN
3:
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/property-unsorted-1.S b/ld/testsuite/ld-x86-64/property-unsorted-1.S
index de96e7a..482b85e 100644
--- a/ld/testsuite/ld-x86-64/property-unsorted-1.S
+++ b/ld/testsuite/ld-x86-64/property-unsorted-1.S
@@ -37,3 +37,4 @@
5:
.p2align ALIGN
3:
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/property-unsorted-2.S b/ld/testsuite/ld-x86-64/property-unsorted-2.S
index 65d7fad..1be6703 100644
--- a/ld/testsuite/ld-x86-64/property-unsorted-2.S
+++ b/ld/testsuite/ld-x86-64/property-unsorted-2.S
@@ -25,3 +25,4 @@
5:
.p2align ALIGN
3:
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/property-x86-1.S b/ld/testsuite/ld-x86-64/property-x86-1.S
index b669e72..6d1d8fb 100644
--- a/ld/testsuite/ld-x86-64/property-x86-1.S
+++ b/ld/testsuite/ld-x86-64/property-x86-1.S
@@ -35,3 +35,4 @@
5:
.p2align ALIGN
3:
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/property-x86-2.S b/ld/testsuite/ld-x86-64/property-x86-2.S
index b108b17..613d5b2 100644
--- a/ld/testsuite/ld-x86-64/property-x86-2.S
+++ b/ld/testsuite/ld-x86-64/property-x86-2.S
@@ -28,3 +28,4 @@
5:
.p2align ALIGN
3:
+ .section .note.GNU-stack
diff --git a/ld/testsuite/ld-x86-64/start.s b/ld/testsuite/ld-x86-64/start.s
index 80301c6..4262a33 100644
--- a/ld/testsuite/ld-x86-64/start.s
+++ b/ld/testsuite/ld-x86-64/start.s
@@ -1,3 +1,4 @@
.globl _start
_start:
jmp foo
+ .section .note.GNU-stack