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-tic6x | |
parent | 72b580b8f48927cf7bc4cf8bb951aaeff637d0ee (diff) | |
download | binutils-65daf5bed68f3e792e80f7c9a12871fd71da32a2.zip binutils-65daf5bed68f3e792e80f7c9a12871fd71da32a2.tar.gz binutils-65daf5bed68f3e792e80f7c9a12871fd71da32a2.tar.bz2 |
Add linker warning for when it creates an executable stack.
PR 29072
Diffstat (limited to 'ld/testsuite/ld-tic6x')
-rw-r--r-- | ld/testsuite/ld-tic6x/got-reloc-global.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1b.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1r.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-1rb.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-2.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1b.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1r.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1r.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-app-1rb.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/shlib-noindex.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1b.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1r.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1rb.rd | 2 |
18 files changed, 18 insertions, 13 deletions
diff --git a/ld/testsuite/ld-tic6x/got-reloc-global.s b/ld/testsuite/ld-tic6x/got-reloc-global.s index 054c297..e6fb809 100644 --- a/ld/testsuite/ld-tic6x/got-reloc-global.s +++ b/ld/testsuite/ld-tic6x/got-reloc-global.s @@ -9,3 +9,4 @@ .type a, @object .size a, 4 a: + .section .note.GNU-stack diff --git a/ld/testsuite/ld-tic6x/shlib-1.rd b/ld/testsuite/ld-tic6x/shlib-1.rd index 9ad2396..cf1f346 100644 --- a/ld/testsuite/ld-tic6x/shlib-1.rd +++ b/ld/testsuite/ld-tic6x/shlib-1.rd @@ -31,7 +31,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001fc 0x001fc RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x00130 0x00134 RWE 0x1000 DYNAMIC 0x001154 0x00008154 0x00008154 0x000a8 0x000a8 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/shlib-1.s b/ld/testsuite/ld-tic6x/shlib-1.s index cb065a2..058bcbc 100644 --- a/ld/testsuite/ld-tic6x/shlib-1.s +++ b/ld/testsuite/ld-tic6x/shlib-1.s @@ -42,3 +42,4 @@ g2: .hidden c .scomm c,4,4 + .section .note.GNU-stack diff --git a/ld/testsuite/ld-tic6x/shlib-1b.rd b/ld/testsuite/ld-tic6x/shlib-1b.rd index 9ad2396..cf1f346 100644 --- a/ld/testsuite/ld-tic6x/shlib-1b.rd +++ b/ld/testsuite/ld-tic6x/shlib-1b.rd @@ -31,7 +31,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001fc 0x001fc RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x00130 0x00134 RWE 0x1000 DYNAMIC 0x001154 0x00008154 0x00008154 0x000a8 0x000a8 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/shlib-1r.rd b/ld/testsuite/ld-tic6x/shlib-1r.rd index 9ad2396..cf1f346 100644 --- a/ld/testsuite/ld-tic6x/shlib-1r.rd +++ b/ld/testsuite/ld-tic6x/shlib-1r.rd @@ -31,7 +31,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001fc 0x001fc RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x00130 0x00134 RWE 0x1000 DYNAMIC 0x001154 0x00008154 0x00008154 0x000a8 0x000a8 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/shlib-1rb.rd b/ld/testsuite/ld-tic6x/shlib-1rb.rd index 9ad2396..cf1f346 100644 --- a/ld/testsuite/ld-tic6x/shlib-1rb.rd +++ b/ld/testsuite/ld-tic6x/shlib-1rb.rd @@ -31,7 +31,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001fc 0x001fc RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x00130 0x00134 RWE 0x1000 DYNAMIC 0x001154 0x00008154 0x00008154 0x000a8 0x000a8 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/shlib-2.s b/ld/testsuite/ld-tic6x/shlib-2.s index 3d786dd..e6eba01 100644 --- a/ld/testsuite/ld-tic6x/shlib-2.s +++ b/ld/testsuite/ld-tic6x/shlib-2.s @@ -21,3 +21,4 @@ sub: ldw .d2t2 *+B14(c), B9 nop 1 .size sub, .-sub + .section .note.GNU-stack diff --git a/ld/testsuite/ld-tic6x/shlib-app-1.rd b/ld/testsuite/ld-tic6x/shlib-app-1.rd index 607d270..fb3a080 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1.rd @@ -32,7 +32,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x00208 0x00208 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x000cc 0x000d0 RWE 0x1000 DYNAMIC 0x001150 0x00008150 0x00008150 0x000b8 0x000b8 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/shlib-app-1.s b/ld/testsuite/ld-tic6x/shlib-app-1.s index fe254bb..3bb0007 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1.s +++ b/ld/testsuite/ld-tic6x/shlib-app-1.s @@ -29,3 +29,4 @@ b: w: .long g1 .long g2 + .section .note.GNU-stack diff --git a/ld/testsuite/ld-tic6x/shlib-app-1b.rd b/ld/testsuite/ld-tic6x/shlib-app-1b.rd index 68d2076..3a5d217 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1b.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1b.rd @@ -32,7 +32,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x00208 0x00208 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x000cc 0x000d0 RWE 0x1000 DYNAMIC 0x001150 0x00008150 0x00008150 0x000b8 0x000b8 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/shlib-app-1r.rd b/ld/testsuite/ld-tic6x/shlib-app-1r.rd index 82502af..288400b 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1r.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1r.rd @@ -31,7 +31,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001c4 0x001c4 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x000c4 0x000c8 RWE 0x1000 DYNAMIC 0x00110c 0x0000810c 0x0000810c 0x000b8 0x000b8 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/shlib-app-1r.s b/ld/testsuite/ld-tic6x/shlib-app-1r.s index a6de900..4928804 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1r.s +++ b/ld/testsuite/ld-tic6x/shlib-app-1r.s @@ -17,3 +17,4 @@ fish: .size b, 4 b: .long 0x12345678 + .section .note.GNU-stack diff --git a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd index 8d13fb2..058261d 100644 --- a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd +++ b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd @@ -31,7 +31,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001c4 0x001c4 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x000c4 0x000c8 RWE 0x1000 DYNAMIC 0x00110c 0x0000810c 0x0000810c 0x000b8 0x000b8 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/shlib-noindex.rd b/ld/testsuite/ld-tic6x/shlib-noindex.rd index f087d15..52e4334 100644 --- a/ld/testsuite/ld-tic6x/shlib-noindex.rd +++ b/ld/testsuite/ld-tic6x/shlib-noindex.rd @@ -32,7 +32,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x00210 0x00210 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x00130 0x00134 RWE 0x1000 DYNAMIC 0x001160 0x00008160 0x00008160 0x000b0 0x000b0 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/static-app-1.rd b/ld/testsuite/ld-tic6x/static-app-1.rd index 36c4810..6cb86cd 100644 --- a/ld/testsuite/ld-tic6x/static-app-1.rd +++ b/ld/testsuite/ld-tic6x/static-app-1.rd @@ -29,7 +29,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001b8 0x001b8 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x000f4 0x000f8 RWE 0x1000 DYNAMIC 0x001128 0x00008128 0x00008128 0x00090 0x00090 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/static-app-1b.rd b/ld/testsuite/ld-tic6x/static-app-1b.rd index 36c4810..6cb86cd 100644 --- a/ld/testsuite/ld-tic6x/static-app-1b.rd +++ b/ld/testsuite/ld-tic6x/static-app-1b.rd @@ -29,7 +29,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001b8 0x001b8 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x000f4 0x000f8 RWE 0x1000 DYNAMIC 0x001128 0x00008128 0x00008128 0x00090 0x00090 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/static-app-1r.rd b/ld/testsuite/ld-tic6x/static-app-1r.rd index b04e327..8d9d119 100644 --- a/ld/testsuite/ld-tic6x/static-app-1r.rd +++ b/ld/testsuite/ld-tic6x/static-app-1r.rd @@ -29,7 +29,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001a0 0x001a0 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x000ec 0x000f0 RWE 0x1000 DYNAMIC 0x001110 0x00008110 0x00008110 0x00090 0x00090 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. diff --git a/ld/testsuite/ld-tic6x/static-app-1rb.rd b/ld/testsuite/ld-tic6x/static-app-1rb.rd index b04e327..8d9d119 100644 --- a/ld/testsuite/ld-tic6x/static-app-1rb.rd +++ b/ld/testsuite/ld-tic6x/static-app-1rb.rd @@ -29,7 +29,7 @@ Program Headers: LOAD 0x001000 0x00008000 0x00008000 0x001a0 0x001a0 RW 0x1000 LOAD 0x002000 0x10000000 0x10000000 0x000ec 0x000f0 RWE 0x1000 DYNAMIC 0x001110 0x00008110 0x00008110 0x00090 0x00090 RW 0x4 - GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RWE 0x8 + GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x20000 RW 0x8 Section to Segment mapping: Segment Sections\.\.\. |