diff options
author | Nick Clifton <nickc@redhat.com> | 2022-04-20 13:37:51 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-04-20 13:39:05 +0100 |
commit | 65daf5bed68f3e792e80f7c9a12871fd71da32a2 (patch) | |
tree | a55da6b2014760d60106975406377517a8133874 /ld/testsuite/ld-unique | |
parent | 72b580b8f48927cf7bc4cf8bb951aaeff637d0ee (diff) | |
download | fsf-binutils-gdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.zip fsf-binutils-gdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.tar.gz fsf-binutils-gdb-65daf5bed68f3e792e80f7c9a12871fd71da32a2.tar.bz2 |
Add linker warning for when it creates an executable stack.
PR 29072
Diffstat (limited to 'ld/testsuite/ld-unique')
-rw-r--r-- | ld/testsuite/ld-unique/unique.s | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-unique/unique_empty.s | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-unique/unique_shared.s | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-unique/unique.s b/ld/testsuite/ld-unique/unique.s index cd5e64e..2ad41c2 100644 --- a/ld/testsuite/ld-unique/unique.s +++ b/ld/testsuite/ld-unique/unique.s @@ -6,3 +6,6 @@ a_val: .long 0 .global main main: .long 0 + + .section .note.GNU-stack,"" + diff --git a/ld/testsuite/ld-unique/unique_empty.s b/ld/testsuite/ld-unique/unique_empty.s index 4896641..71d5b86 100644 --- a/ld/testsuite/ld-unique/unique_empty.s +++ b/ld/testsuite/ld-unique/unique_empty.s @@ -2,3 +2,5 @@ .global main main: .dc.a b_val + + .section .note.GNU-stack diff --git a/ld/testsuite/ld-unique/unique_shared.s b/ld/testsuite/ld-unique/unique_shared.s index f1914f3..359b13e 100644 --- a/ld/testsuite/ld-unique/unique_shared.s +++ b/ld/testsuite/ld-unique/unique_shared.s @@ -1,3 +1,4 @@ .type b_val, %gnu_unique_object b_val: .long 0 .size b_val, .-b_val + .section .note.GNU-stack |