diff options
137 files changed, 139 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/aarch64-unwind-pc.S b/gdb/testsuite/gdb.arch/aarch64-unwind-pc.S index 6cc4f80..3e6f4ed 100644 --- a/gdb/testsuite/gdb.arch/aarch64-unwind-pc.S +++ b/gdb/testsuite/gdb.arch/aarch64-unwind-pc.S @@ -46,3 +46,4 @@ test_func: mov x30, 0x1234 ret x0 .cfi_endproc + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.S b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.S index 99fa834..9af6c8e 100644 --- a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.S +++ b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.S @@ -33,3 +33,4 @@ test: nop /* Incorrect. */ nop nop + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.S b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.S index 32e5fc7..924deef 100644 --- a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.S +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.S @@ -75,3 +75,4 @@ done: var128: .8byte 0xaa55aa55aa55aa55 .8byte 0x55aa55aa55aa55aa + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step.S b/gdb/testsuite/gdb.arch/amd64-disp-step.S index c224962..cdf36cb 100644 --- a/gdb/testsuite/gdb.arch/amd64-disp-step.S +++ b/gdb/testsuite/gdb.arch/amd64-disp-step.S @@ -179,3 +179,4 @@ test_abs_jmp_end: test_rep_ret: repz ret + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-i386-address.S b/gdb/testsuite/gdb.arch/amd64-i386-address.S index cec9898..fbc7cea 100644 --- a/gdb/testsuite/gdb.arch/amd64-i386-address.S +++ b/gdb/testsuite/gdb.arch/amd64-i386-address.S @@ -22,3 +22,4 @@ _start: .globl _start int3 nop nop + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-init-x87-values.S b/gdb/testsuite/gdb.arch/amd64-init-x87-values.S index 8b6dc02..de8607c 100644 --- a/gdb/testsuite/gdb.arch/amd64-init-x87-values.S +++ b/gdb/testsuite/gdb.arch/amd64-init-x87-values.S @@ -29,3 +29,4 @@ main: nop fld1 nop + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-prologue-skip.S b/gdb/testsuite/gdb.arch/amd64-prologue-skip.S index 096745e..1e18150 100644 --- a/gdb/testsuite/gdb.arch/amd64-prologue-skip.S +++ b/gdb/testsuite/gdb.arch/amd64-prologue-skip.S @@ -26,3 +26,4 @@ pushrbp: .globl pushrbp #define MINSYM nop; .globl minsym; minsym: nop /*8*/ MINSYM /*a*/ hlt + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-stap-expressions.S b/gdb/testsuite/gdb.arch/amd64-stap-expressions.S index 0f0dfee..05ba8fc 100644 --- a/gdb/testsuite/gdb.arch/amd64-stap-expressions.S +++ b/gdb/testsuite/gdb.arch/amd64-stap-expressions.S @@ -41,3 +41,4 @@ main: xor %rax,%rax ret + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.S b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.S index 5bc8858..592a875 100644 --- a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.S +++ b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.S @@ -40,3 +40,4 @@ main: STAP_PROBE1(probe, fail2_probe, 23-@$16) xor %rax,%rax ret + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.S b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.S index fcf0b73..1545ff9 100644 --- a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.S +++ b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.S @@ -25,3 +25,4 @@ main: STAP_PROBE2(probe, bar, -4@-($4), -4@$-3+($22/$2)-$16) xor %rax,%rax ret + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-self.S b/gdb/testsuite/gdb.arch/amd64-tailcall-self.S index f1a3404..6768752 100644 --- a/gdb/testsuite/gdb.arch/amd64-tailcall-self.S +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-self.S @@ -612,3 +612,4 @@ die10a: .LASF2: .string "argv" .ident "GCC: (GNU) 4.9.2 20150212 (Red Hat 4.9.2-6)" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/arc-analyze-prologue.S b/gdb/testsuite/gdb.arch/arc-analyze-prologue.S index de6973f..ae7b71e 100644 --- a/gdb/testsuite/gdb.arch/arc-analyze-prologue.S +++ b/gdb/testsuite/gdb.arch/arc-analyze-prologue.S @@ -901,3 +901,4 @@ main: j_s [blink] .align 4 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/arc-decode-insn.S b/gdb/testsuite/gdb.arch/arc-decode-insn.S index 4228515..9f2ed9f 100644 --- a/gdb/testsuite/gdb.arch/arc-decode-insn.S +++ b/gdb/testsuite/gdb.arch/arc-decode-insn.S @@ -1000,3 +1000,4 @@ start_branch_tests: .Lend: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/arc-disassembler-options.s b/gdb/testsuite/gdb.arch/arc-disassembler-options.s index cb22699..5e063b9 100644 --- a/gdb/testsuite/gdb.arch/arc-disassembler-options.s +++ b/gdb/testsuite/gdb.arch/arc-disassembler-options.s @@ -19,3 +19,4 @@ foo: lr r0, [tlbpd0] .end foo + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/arm-disp-step.S b/gdb/testsuite/gdb.arch/arm-disp-step.S index b67e83e..9f687cd 100644 --- a/gdb/testsuite/gdb.arch/arm-disp-step.S +++ b/gdb/testsuite/gdb.arch/arm-disp-step.S @@ -391,3 +391,4 @@ test_add_rn_pc_end: bx lr .size test_add_rn_pc, .-test_add_rn_pc #endif + .section .note.GNU-stack,"",%progbits diff --git a/gdb/testsuite/gdb.arch/gdb1291.s b/gdb/testsuite/gdb.arch/gdb1291.s index 5efe33b..9ee2b45 100644 --- a/gdb/testsuite/gdb.arch/gdb1291.s +++ b/gdb/testsuite/gdb.arch/gdb1291.s @@ -126,3 +126,4 @@ _sub2: .short 260 .size _sub2, .-_sub2 .ident "GCC: (GNU) 3.5.0 20040204 (experimental)" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/gdb1431.s b/gdb/testsuite/gdb.arch/gdb1431.s index 0b90f63..d373c47 100644 --- a/gdb/testsuite/gdb.arch/gdb1431.s +++ b/gdb/testsuite/gdb.arch/gdb1431.s @@ -126,3 +126,4 @@ _sub2: .short 260 .size _sub2, .-_sub2 .ident "GCC: (GNU) 3.5.0 20040204 (experimental)" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.S b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.S index 3ed983c..9764053 100644 --- a/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.S +++ b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.S @@ -74,3 +74,4 @@ main: .cfi_endproc .LFE2: .size main, .-main + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/i386-disp-step.S b/gdb/testsuite/gdb.arch/i386-disp-step.S index af1ac54..e5f6a4c 100644 --- a/gdb/testsuite/gdb.arch/i386-disp-step.S +++ b/gdb/testsuite/gdb.arch/i386-disp-step.S @@ -121,3 +121,4 @@ test_call_end: .global test_ret test_ret: ret + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/i386-float.S b/gdb/testsuite/gdb.arch/i386-float.S index 82c7902..13bd2c3 100644 --- a/gdb/testsuite/gdb.arch/i386-float.S +++ b/gdb/testsuite/gdb.arch/i386-float.S @@ -36,3 +36,4 @@ SYMBOL(main): val: .byte 0x00,0x00,0x45,0x07,0x11,0x19,0x22,0xe9,0xfe,0xbf smallval: .byte 0xe9,0xd0,0xd7,0x65,0x81,0xb7,0x43,0xc6,0x5c,0x6a bigval: .byte 0x6a,0x45,0x90,0xdc,0x03,0xc1,0xf8,0xc6,0xe5,0x03 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/i386-permbkpt.S b/gdb/testsuite/gdb.arch/i386-permbkpt.S index 1a17b22..bdacfbd 100644 --- a/gdb/testsuite/gdb.arch/i386-permbkpt.S +++ b/gdb/testsuite/gdb.arch/i386-permbkpt.S @@ -28,3 +28,4 @@ SYMBOL(main): int3 ret + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/mips-disassembler-options.s b/gdb/testsuite/gdb.arch/mips-disassembler-options.s index bb7f95d..7fc7cd5 100644 --- a/gdb/testsuite/gdb.arch/mips-disassembler-options.s +++ b/gdb/testsuite/gdb.arch/mips-disassembler-options.s @@ -28,3 +28,4 @@ foo: bar: move $2, $8 .end bar + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/pa-nullify.s b/gdb/testsuite/gdb.arch/pa-nullify.s index 8b756bd..384a5f5 100644 --- a/gdb/testsuite/gdb.arch/pa-nullify.s +++ b/gdb/testsuite/gdb.arch/pa-nullify.s @@ -56,3 +56,4 @@ main: bv,n %r0(%r2) .EXIT .PROCEND + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/pa64-nullify.s b/gdb/testsuite/gdb.arch/pa64-nullify.s index f297699..6d25382 100644 --- a/gdb/testsuite/gdb.arch/pa64-nullify.s +++ b/gdb/testsuite/gdb.arch/pa64-nullify.s @@ -68,3 +68,4 @@ main: bve,n (%r2) .EXIT .PROCEND + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-addpcis.s b/gdb/testsuite/gdb.arch/powerpc-addpcis.s index dfc922c..84484ec 100644 --- a/gdb/testsuite/gdb.arch/powerpc-addpcis.s +++ b/gdb/testsuite/gdb.arch/powerpc-addpcis.s @@ -33,3 +33,4 @@ main: blr + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-altivec.s b/gdb/testsuite/gdb.arch/powerpc-altivec.s index 25400dd..d9d66fd 100644 --- a/gdb/testsuite/gdb.arch/powerpc-altivec.s +++ b/gdb/testsuite/gdb.arch/powerpc-altivec.s @@ -213,3 +213,4 @@ func: .long 0x11e0e28e /* vupklsb v15,v28 */ .long 0x110042ce /* vupklsh v8,v8 */ .long 0x13201cc4 /* vxor v25,v0,v3 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-altivec2.s b/gdb/testsuite/gdb.arch/powerpc-altivec2.s index f01e9a0..4e74044 100644 --- a/gdb/testsuite/gdb.arch/powerpc-altivec2.s +++ b/gdb/testsuite/gdb.arch/powerpc-altivec2.s @@ -133,3 +133,4 @@ func: .long 0x11e0f7c3 /* vpopcntd v15,v30 */ .long 0x105f36c7 /* vcmpgtud. v2,v31,v6 */ .long 0x128f17c7 /* vcmpgtsd. v20,v15,v2 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-altivec3.s b/gdb/testsuite/gdb.arch/powerpc-altivec3.s index ae9571c..843a6e8 100644 --- a/gdb/testsuite/gdb.arch/powerpc-altivec3.s +++ b/gdb/testsuite/gdb.arch/powerpc-altivec3.s @@ -86,3 +86,4 @@ func: .long 0x11e90f4d /* vextuhrx r15,r9,v1 */ .long 0x12b1878d /* vextuwrx r21,r17,v16 */ .long 0x1295b5e3 /* vmsumudm v20,v21,v22,v23 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-lnia.s b/gdb/testsuite/gdb.arch/powerpc-lnia.s index d81607d..86fd319 100644 --- a/gdb/testsuite/gdb.arch/powerpc-lnia.s +++ b/gdb/testsuite/gdb.arch/powerpc-lnia.s @@ -31,3 +31,4 @@ main: lnia 9 # /* set r9 */ blr + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.s b/gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.s index d39ec23..ede6dc9 100644 --- a/gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.s +++ b/gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.s @@ -43,3 +43,4 @@ mydata: .long 0xabbbcbdb # <<- loaded into vs7 .long 0xacbcccdc # <<- + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-power10.s b/gdb/testsuite/gdb.arch/powerpc-power10.s index 7a8bab4..9ded00a 100644 --- a/gdb/testsuite/gdb.arch/powerpc-power10.s +++ b/gdb/testsuite/gdb.arch/powerpc-power10.s @@ -1015,3 +1015,4 @@ func: .long 0x80060003 .long 0x05000000 /* xxspltiw vs0,8 */ .long 0x80060008 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-power7.s b/gdb/testsuite/gdb.arch/powerpc-power7.s index 92e9bc5..329ed5e 100644 --- a/gdb/testsuite/gdb.arch/powerpc-power7.s +++ b/gdb/testsuite/gdb.arch/powerpc-power7.s @@ -108,3 +108,4 @@ func: .long 0x7d80e3a6 /* mtppr r12 */ .long 0x7da2e3a6 /* mtppr32 r13 */ .long 0x7d605264 /* tlbie r10,r11 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-power8.s b/gdb/testsuite/gdb.arch/powerpc-power8.s index 4367a6f..6a8dcc4 100644 --- a/gdb/testsuite/gdb.arch/powerpc-power8.s +++ b/gdb/testsuite/gdb.arch/powerpc-power8.s @@ -185,3 +185,4 @@ func: .long 0x7d81492d /* stwcx. r12,r1,r9 */ .long 0x7da051ad /* stdcx. r13,0,r10 */ .long 0x7da151ad /* stdcx. r13,r1,r10 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-power9.s b/gdb/testsuite/gdb.arch/powerpc-power9.s index d15af59..09dcb38 100644 --- a/gdb/testsuite/gdb.arch/powerpc-power9.s +++ b/gdb/testsuite/gdb.arch/powerpc-power9.s @@ -384,3 +384,4 @@ func: .long 0xffd7048e /* mffscrni f30,0 */ .long 0xffd71c8e /* mffscrni f30,3 */ .long 0xfff8048e /* mffsl f31 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue-frame.S b/gdb/testsuite/gdb.arch/powerpc-prologue-frame.S index dd60fca..d7424ff 100644 --- a/gdb/testsuite/gdb.arch/powerpc-prologue-frame.S +++ b/gdb/testsuite/gdb.arch/powerpc-prologue-frame.S @@ -33,3 +33,4 @@ FUNC_START(foo) mr 1,11 blr FUNC_END(foo) + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-stackless.S b/gdb/testsuite/gdb.arch/powerpc-stackless.S index 29c16c1..452c2b8 100644 --- a/gdb/testsuite/gdb.arch/powerpc-stackless.S +++ b/gdb/testsuite/gdb.arch/powerpc-stackless.S @@ -22,3 +22,4 @@ FUNC_START(main) mtlr sp blr FUNC_END(main) + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-trap.s b/gdb/testsuite/gdb.arch/powerpc-trap.s index cc42791..8e31c02 100644 --- a/gdb/testsuite/gdb.arch/powerpc-trap.s +++ b/gdb/testsuite/gdb.arch/powerpc-trap.s @@ -29,3 +29,4 @@ main: li 3, 0 blr + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-vsx.s b/gdb/testsuite/gdb.arch/powerpc-vsx.s index 7604b4a..5ac2cac 100644 --- a/gdb/testsuite/gdb.arch/powerpc-vsx.s +++ b/gdb/testsuite/gdb.arch/powerpc-vsx.s @@ -170,3 +170,4 @@ func: .long 0xf102e293 /* xxspltw vs40,vs60,2 */ .long 0x7d00a699 /* lxvd2x vs40,0,r20 */ .long 0x7d00a799 /* stxvd2x vs40,0,r20 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-vsx2.s b/gdb/testsuite/gdb.arch/powerpc-vsx2.s index aa3dff6..71d9cf7 100644 --- a/gdb/testsuite/gdb.arch/powerpc-vsx2.s +++ b/gdb/testsuite/gdb.arch/powerpc-vsx2.s @@ -63,3 +63,4 @@ func: .long 0xf360d52d /* xscvspdpn vs59,vs26 */ .long 0xff0e168c /* fmrgow f24,f14,f2 */ .long 0xfec72f8c /* fmrgew f22,f7,f5 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc-vsx3.s b/gdb/testsuite/gdb.arch/powerpc-vsx3.s index 8dd344d..1e66d21 100644 --- a/gdb/testsuite/gdb.arch/powerpc-vsx3.s +++ b/gdb/testsuite/gdb.arch/powerpc-vsx3.s @@ -139,3 +139,4 @@ func: .long 0xfe766688 /* xscvdpqp v19,v12 */ .long 0xfdb92688 /* xscvqpsdz v13,v4 */ .long 0xfcf83ec8 /* xsiexpqp v7,v24,v7 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/powerpc64-trap.s b/gdb/testsuite/gdb.arch/powerpc64-trap.s index 6b20e76..75c37af 100644 --- a/gdb/testsuite/gdb.arch/powerpc64-trap.s +++ b/gdb/testsuite/gdb.arch/powerpc64-trap.s @@ -31,3 +31,4 @@ main: li 3, 0 blr + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.S b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.S index 0dbb25d..9d6b4fe 100644 --- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.S +++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.S @@ -59,3 +59,4 @@ main: #else .size .main,.-.main #endif + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.S b/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.S index 873a45a..db56803 100644 --- a/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.S +++ b/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.S @@ -98,3 +98,4 @@ test_atomic_sequences: #else .size .test_atomic_sequences,.-.test_atomic_sequences #endif + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/pr25124.S b/gdb/testsuite/gdb.arch/pr25124.S index 1f54cfd..7ed0a62 100644 --- a/gdb/testsuite/gdb.arch/pr25124.S +++ b/gdb/testsuite/gdb.arch/pr25124.S @@ -33,3 +33,4 @@ main: mov r0, #0 bx lr .size main, .-main + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.S b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.S index 00e0a34..e240996 100644 --- a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.S +++ b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.S @@ -60,3 +60,4 @@ func: addi sp,sp,16 jr ra .size func, .-func + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw-foo.s b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw-foo.s index e0c538f..c12c16e 100644 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw-foo.s +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw-foo.s @@ -72,3 +72,4 @@ foo: addi sp,sp,32 jr ra .size foo, .-foo + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.s b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.s index aead673..dfb0f36 100644 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.s +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.s @@ -45,3 +45,4 @@ foo: addi sp,sp,32 jr ra .size foo, .-foo + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/s390-stackless.S b/gdb/testsuite/gdb.arch/s390-stackless.S index 9763e1f..7d2265d 100644 --- a/gdb/testsuite/gdb.arch/s390-stackless.S +++ b/gdb/testsuite/gdb.arch/s390-stackless.S @@ -31,3 +31,4 @@ main: la %r15,3(0,0) .byte 0,1 1: st %r15,0(%r15) br %r14 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/sparc64-regs.S b/gdb/testsuite/gdb.arch/sparc64-regs.S index cd9301b..ff3c741 100644 --- a/gdb/testsuite/gdb.arch/sparc64-regs.S +++ b/gdb/testsuite/gdb.arch/sparc64-regs.S @@ -134,3 +134,4 @@ test_fsr: .align 8 flags: .xword 0x0000000000000000 .size flags, .-flags + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/thumb-bx-pc.S b/gdb/testsuite/gdb.arch/thumb-bx-pc.S index d97c4bf..6d72265 100644 --- a/gdb/testsuite/gdb.arch/thumb-bx-pc.S +++ b/gdb/testsuite/gdb.arch/thumb-bx-pc.S @@ -32,3 +32,4 @@ main: mov r0, #0 bx lr .size main, .-main + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/thumb-singlestep.S b/gdb/testsuite/gdb.arch/thumb-singlestep.S index 2a2e8e3..c0291a0 100644 --- a/gdb/testsuite/gdb.arch/thumb-singlestep.S +++ b/gdb/testsuite/gdb.arch/thumb-singlestep.S @@ -38,3 +38,4 @@ main: pop {r3, pc} .size main, .-main + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/thumb2-it.S b/gdb/testsuite/gdb.arch/thumb2-it.S index 0b06c82..892c562 100644 --- a/gdb/testsuite/gdb.arch/thumb2-it.S +++ b/gdb/testsuite/gdb.arch/thumb2-it.S @@ -180,3 +180,4 @@ it_breakpoints: bx lr #endif /* __thumb2__ */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.asm/asmsrc1.s b/gdb/testsuite/gdb.asm/asmsrc1.s index ddf8790..35b39ca 100644 --- a/gdb/testsuite/gdb.asm/asmsrc1.s +++ b/gdb/testsuite/gdb.asm/asmsrc1.s @@ -85,3 +85,4 @@ gdbasm_datavar staticvar 5 .include "note.inc" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.asm/asmsrc2.s b/gdb/testsuite/gdb.asm/asmsrc2.s index e585ee2..288b708 100644 --- a/gdb/testsuite/gdb.asm/asmsrc2.s +++ b/gdb/testsuite/gdb.asm/asmsrc2.s @@ -19,3 +19,4 @@ comment "mark: foo2 leave" gdbasm_leave gdbasm_end foo2 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.base/dup-sect.S b/gdb/testsuite/gdb.base/dup-sect.S index b33378e..2af269f 100644 --- a/gdb/testsuite/gdb.base/dup-sect.S +++ b/gdb/testsuite/gdb.base/dup-sect.S @@ -20,3 +20,4 @@ var1: .byte 1 .section sect2, "a" var2: .byte 2 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.btrace/instruction_history.S b/gdb/testsuite/gdb.btrace/instruction_history.S index 8f9b834..23901a3 100644 --- a/gdb/testsuite/gdb.btrace/instruction_history.S +++ b/gdb/testsuite/gdb.btrace/instruction_history.S @@ -30,3 +30,4 @@ loop: jmp .L1 .L2: ret /* bp.2 */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.btrace/x86-tsx.S b/gdb/testsuite/gdb.btrace/x86-tsx.S index bc4009d..0cfc329 100644 --- a/gdb/testsuite/gdb.btrace/x86-tsx.S +++ b/gdb/testsuite/gdb.btrace/x86-tsx.S @@ -27,3 +27,4 @@ test: .Lhandler: mov $1, %eax ret + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.compile/compile-constvar.S b/gdb/testsuite/gdb.compile/compile-constvar.S index 83644cb..b2e178c 100644 --- a/gdb/testsuite/gdb.compile/compile-constvar.S +++ b/gdb/testsuite/gdb.compile/compile-constvar.S @@ -93,3 +93,4 @@ .LASF0: .string "GNU C 4.8.2 20131212 (Red Hat 4.8.2-7) -mtune=generic -march=x86-64 -g" .ident "GCC: (GNU) 4.8.2 20131212 (Red Hat 4.8.2-7)" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/am33.s b/gdb/testsuite/gdb.disasm/am33.s index a686cef..e699bcf 100644 --- a/gdb/testsuite/gdb.disasm/am33.s +++ b/gdb/testsuite/gdb.disasm/am33.s @@ -522,3 +522,4 @@ dsp_autoincrement_tests: mov_leq (r1+,4),r2 mov_lne (r1+,4),r2 mov_lra (r1+,4),r2 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/h8300s.s b/gdb/testsuite/gdb.disasm/h8300s.s index 6510d40..0fd8656 100644 --- a/gdb/testsuite/gdb.disasm/h8300s.s +++ b/gdb/testsuite/gdb.disasm/h8300s.s @@ -354,3 +354,4 @@ system_control_tests: block_data_transfer_tests: eepmov.b eepmov.w + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/hppa.s b/gdb/testsuite/gdb.disasm/hppa.s index 593d8bf..12ace7d 100644 --- a/gdb/testsuite/gdb.disasm/hppa.s +++ b/gdb/testsuite/gdb.disasm/hppa.s @@ -1736,3 +1736,4 @@ fmemLRbug_tests_4 bv,n 0(%r2) .EXIT .PROCEND + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/mn10200.s b/gdb/testsuite/gdb.disasm/mn10200.s index 32357b0..c48dd64 100644 --- a/gdb/testsuite/gdb.disasm/mn10200.s +++ b/gdb/testsuite/gdb.disasm/mn10200.s @@ -215,3 +215,4 @@ sub_tests: sub 32767,a2 sub 131071,a2 subc d1,d2 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/mn10300.s b/gdb/testsuite/gdb.disasm/mn10300.s index 3ad6c95..e7ab6e4 100644 --- a/gdb/testsuite/gdb.disasm/mn10300.s +++ b/gdb/testsuite/gdb.disasm/mn10300.s @@ -298,3 +298,4 @@ sub_tests: sub 131071,a1 subc d1,d2 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/sh3.s b/gdb/testsuite/gdb.disasm/sh3.s index e5969f5..ab70da3 100644 --- a/gdb/testsuite/gdb.disasm/sh3.s +++ b/gdb/testsuite/gdb.disasm/sh3.s @@ -52,3 +52,4 @@ _fp_misc_tests: sts fpscr,r3 sts.l fpscr,@-r3 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t01_mov.s b/gdb/testsuite/gdb.disasm/t01_mov.s index 6848304..d79d8aa 100644 --- a/gdb/testsuite/gdb.disasm/t01_mov.s +++ b/gdb/testsuite/gdb.disasm/t01_mov.s @@ -1105,3 +1105,4 @@ label: .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t02_mova.s b/gdb/testsuite/gdb.disasm/t02_mova.s index 4615bcc..b16da02 100644 --- a/gdb/testsuite/gdb.disasm/t02_mova.s +++ b/gdb/testsuite/gdb.disasm/t02_mova.s @@ -236,3 +236,4 @@ _start: mova/l.l @(0x12345678:32,@0x9ABCDEF0:32.w),er1 ;015F48D99ABCDEF012345678 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t03_add.s b/gdb/testsuite/gdb.disasm/t03_add.s index 2b83247..024ae61 100644 --- a/gdb/testsuite/gdb.disasm/t03_add.s +++ b/gdb/testsuite/gdb.disasm/t03_add.s @@ -976,3 +976,4 @@ _start: add.l @0x12345678:32,@0x9abcdef0:32 ;01046b2c1234567848109abcdef0 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t04_sub.s b/gdb/testsuite/gdb.disasm/t04_sub.s index d851760..066f0236 100644 --- a/gdb/testsuite/gdb.disasm/t04_sub.s +++ b/gdb/testsuite/gdb.disasm/t04_sub.s @@ -975,3 +975,4 @@ _start: sub.l @0x12345678:32,@0x9abcdef0:32 ;01046b2c1234567848309abcdef0 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t05_cmp.s b/gdb/testsuite/gdb.disasm/t05_cmp.s index ee034f0..8d5b393 100644 --- a/gdb/testsuite/gdb.disasm/t05_cmp.s +++ b/gdb/testsuite/gdb.disasm/t05_cmp.s @@ -919,3 +919,4 @@ _start: cmp.l @0x12345678:32,@0x9abcdef0:32 ;01046b2c1234567848209abcdef0 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t06_ari2.s b/gdb/testsuite/gdb.disasm/t06_ari2.s index 75a9195..dd0e314 100644 --- a/gdb/testsuite/gdb.disasm/t06_ari2.s +++ b/gdb/testsuite/gdb.disasm/t06_ari2.s @@ -186,3 +186,4 @@ _start: divs.l er3,er1 ;01d25331 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t07_ari3.s b/gdb/testsuite/gdb.disasm/t07_ari3.s index 6ad7128..a4afef4 100644 --- a/gdb/testsuite/gdb.disasm/t07_ari3.s +++ b/gdb/testsuite/gdb.disasm/t07_ari3.s @@ -171,3 +171,4 @@ _start: exts.l #2,@0x12345678:32 ;01046b281234567817e0 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t08_or.s b/gdb/testsuite/gdb.disasm/t08_or.s index da4e216..0fa35ab 100644 --- a/gdb/testsuite/gdb.disasm/t08_or.s +++ b/gdb/testsuite/gdb.disasm/t08_or.s @@ -970,3 +970,4 @@ _start: or.l @0x12345678:32,@0x9abcdef0:32 ;01046b2c1234567848409abcdef0 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t09_xor.s b/gdb/testsuite/gdb.disasm/t09_xor.s index ccd479c..05e7510 100644 --- a/gdb/testsuite/gdb.disasm/t09_xor.s +++ b/gdb/testsuite/gdb.disasm/t09_xor.s @@ -970,3 +970,4 @@ _start: xor.l @0x12345678:32,@0x9abcdef0:32 ;01046b2c1234567848509abcdef0 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t10_and.s b/gdb/testsuite/gdb.disasm/t10_and.s index 0459c10..457b67e 100644 --- a/gdb/testsuite/gdb.disasm/t10_and.s +++ b/gdb/testsuite/gdb.disasm/t10_and.s @@ -970,3 +970,4 @@ _start: and.l @0x12345678:32,@0x9abcdef0:32 ;01046b2c1234567848609abcdef0 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t11_logs.s b/gdb/testsuite/gdb.disasm/t11_logs.s index 4768591..228a674 100644 --- a/gdb/testsuite/gdb.disasm/t11_logs.s +++ b/gdb/testsuite/gdb.disasm/t11_logs.s @@ -1175,3 +1175,4 @@ _start: rotr.l #2,@0x12345678:32 ;01046b281234567813f0 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t12_bit.s b/gdb/testsuite/gdb.disasm/t12_bit.s index 4c45b2a..2664a75 100644 --- a/gdb/testsuite/gdb.disasm/t12_bit.s +++ b/gdb/testsuite/gdb.disasm/t12_bit.s @@ -174,3 +174,4 @@ _start: bfst r3h,#0x34:8,@0x12345678:32 ;6a3812345678f334 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.disasm/t13_otr.s b/gdb/testsuite/gdb.disasm/t13_otr.s index 69db411..812cbcf 100644 --- a/gdb/testsuite/gdb.disasm/t13_otr.s +++ b/gdb/testsuite/gdb.disasm/t13_otr.s @@ -157,3 +157,4 @@ _start: nop ;0000 .end + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dup-psym.S b/gdb/testsuite/gdb.dwarf2/dup-psym.S index 6bffeab..d893267 100644 --- a/gdb/testsuite/gdb.dwarf2/dup-psym.S +++ b/gdb/testsuite/gdb.dwarf2/dup-psym.S @@ -197,3 +197,4 @@ func_cu1: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S index 742bf52..7a9e616 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S @@ -149,3 +149,4 @@ LELTP: .uleb128 0x1 .byte 0x1 LELT: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S index cb875da..1771593 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S @@ -149,3 +149,4 @@ LELTP: .uleb128 0x1 .byte 0x1 LELT: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S b/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S index 5ce5692..2a1d4b5 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S @@ -53,3 +53,4 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S index 0b8e8cc..c79fd5c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S @@ -375,3 +375,4 @@ .section .debug_line .Ldebug_line0: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S b/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S index 3aa369a..3833799 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S @@ -246,3 +246,4 @@ func_cu2: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S index 83d2147..3792e70 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S @@ -27,3 +27,4 @@ some_func: .size some_func,.-some_func some_func_end: nop + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S b/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S index b458371..46178d5 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S @@ -71,3 +71,4 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-basic.S b/gdb/testsuite/gdb.dwarf2/dw2-basic.S index 93eba20..9be8b99 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-basic.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-basic.S @@ -197,3 +197,4 @@ func_cu1: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S index 2107d88..c74781b 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S @@ -154,3 +154,4 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S index e51a181..f7dd7ca 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S @@ -126,3 +126,4 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S b/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S index 5128e25..bc83177 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S @@ -239,3 +239,4 @@ gcc43: .globl gcc43 .uleb128 1 .byte 1 .Lgcc43_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compressed.S b/gdb/testsuite/gdb.dwarf2/dw2-compressed.S index 00d7c3a..8c778423 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-compressed.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-compressed.S @@ -218,3 +218,4 @@ func_cu1: .byte 0x9c .byte 0x00 .byte 0x92 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-const.S b/gdb/testsuite/gdb.dwarf2/dw2-const.S index 09263ff..26fe111 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-const.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-const.S @@ -249,3 +249,4 @@ func_cu1: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S index 20061ba..8b35f99 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S @@ -113,3 +113,4 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S index 1aad8a5..de57598 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S @@ -107,3 +107,4 @@ .byte 0x0 /* Terminator .debug_abbrev section. */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S index 205b764..9d8e400 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S @@ -74,3 +74,4 @@ dieb: .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S index ab5a2f7..3254ffb 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S @@ -617,3 +617,4 @@ .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S b/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S index 298658f..9bf275f 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S @@ -31,3 +31,4 @@ main_end: .section .debug_abbrev .Ldebug_abbrev0: .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S index f6dbb91..b2fb1fc 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S @@ -106,3 +106,4 @@ var: .4byte 1 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S index 83cc71f..c9ad27b 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S @@ -80,3 +80,4 @@ dieb: .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S b/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S index 491a985..223044d 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S @@ -102,3 +102,4 @@ loclist: .byte 0x0 .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-filename.S b/gdb/testsuite/gdb.dwarf2/dw2-filename.S index 635577a..7895ab7 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-filename.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-filename.S @@ -51,3 +51,4 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S b/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S index 834b35e..61e6e74 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S @@ -252,3 +252,4 @@ debug_info_seg3_end: .byte 0x08 /* DW_FORM_string. */ .2byte 0x0000 /* End abbrev. */ .byte 0x00 /* End abbrev table. */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S index 4ccc7bb..e63966c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S @@ -246,3 +246,4 @@ p__top: .Lline1_begin: .byte 0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S index 9c4b576..20b2a9f 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S @@ -96,3 +96,4 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S index 1c79805..14958e6 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S @@ -150,3 +150,4 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-intercu.S b/gdb/testsuite/gdb.dwarf2/dw2-intercu.S index 3c9abad..d8857fe 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-intercu.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-intercu.S @@ -314,3 +314,4 @@ func_cu1: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-intermix.S b/gdb/testsuite/gdb.dwarf2/dw2-intermix.S index a2dd41f..208a14f 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-intermix.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-intermix.S @@ -198,3 +198,4 @@ func_cu1: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S index 8f23b3c..0b8aec8 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S @@ -132,3 +132,4 @@ c: .4byte 0 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S index 248908b..c87092c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S @@ -115,3 +115,4 @@ func2: .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S b/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S index f3fe651..c55e86f 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S @@ -121,3 +121,4 @@ die221: .string "GNU Modula-2 0.78 (20100402) grafted onto GCC 4.1.2" .LASF2: .string "" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-noloc.S b/gdb/testsuite/gdb.dwarf2/dw2-noloc.S index 988f095..5d7d326 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-noloc.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-noloc.S @@ -324,3 +324,4 @@ resolvable: .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S index 80f62c3..e3a02e7 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S @@ -178,3 +178,4 @@ inner: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S index a0bda9f..213b0bc 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S @@ -209,3 +209,4 @@ outer_after: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-call.S b/gdb/testsuite/gdb.dwarf2/dw2-op-call.S index 3069f07..60ef039 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-op-call.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-op-call.S @@ -166,3 +166,4 @@ loclist: .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S b/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S index 9165726..51f9f09 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S @@ -675,3 +675,4 @@ int_param_two_reg_pieces: .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S index 6c7ff18..eff6467 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S @@ -130,3 +130,4 @@ aa551234: .byte 0xaa, 0x55, 0x12, 0x34 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-param-error.S b/gdb/testsuite/gdb.dwarf2/dw2-param-error.S index f22e645..a2a5a1d 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-param-error.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-param-error.S @@ -106,3 +106,4 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-producer.S b/gdb/testsuite/gdb.dwarf2/dw2-producer.S index df83b67..011af69 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-producer.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-producer.S @@ -198,3 +198,4 @@ func_cu1: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S index 38bbe01..4780025 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S @@ -149,3 +149,4 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-restore.S b/gdb/testsuite/gdb.dwarf2/dw2-restore.S index 8ac559f..ad834e9 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-restore.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-restore.S @@ -47,3 +47,4 @@ foo: .cfi_startproc jmp 1b .cfi_endproc .endfunc + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S index 90f5b8e..1da2a52 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S @@ -167,3 +167,4 @@ d: .string "sizetype" .LASF1: .string "char" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S b/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S index b8a18f6..1245c1c 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S @@ -397,3 +397,4 @@ loclist: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S index dc392fe..8bef4f0 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S @@ -66,3 +66,4 @@ debug_end: .byte 0x0 .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-strp.S b/gdb/testsuite/gdb.dwarf2/dw2-strp.S index 1857a2c..f154b68 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-strp.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-strp.S @@ -176,3 +176,4 @@ .string "hello world!\n" .Lemptyname: .string "" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S b/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S index 2313e0c..d1d78f1 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S @@ -178,3 +178,4 @@ SYMBOL(var): .byte 2 .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S b/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S index d05e06c..5d402e9 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S @@ -90,3 +90,4 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S b/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S index 38231f1..0d9ad40 100644 --- a/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S +++ b/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S @@ -85,3 +85,4 @@ types_start: .byte 0x0 .byte 0x0 .byte 0x0 + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.S b/gdb/testsuite/gdb.dwarf2/fission-reread.S index c829fef..92c6be4 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-reread.S +++ b/gdb/testsuite/gdb.dwarf2/fission-reread.S @@ -460,3 +460,4 @@ SYMBOL(main): .Ldebug_addr0: .4byte .LFB0 /* DW_AT_low_pc */ .4byte SYMBOL(baz) /* DW_AT_location */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S b/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S index 2687452..5ec9c8c 100644 --- a/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S +++ b/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S @@ -164,3 +164,4 @@ __start_high_pc: .global __cu_high_pc __cu_high_pc: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/mac-fileno.S b/gdb/testsuite/gdb.dwarf2/mac-fileno.S index 4627814..ca70acb 100644 --- a/gdb/testsuite/gdb.dwarf2/mac-fileno.S +++ b/gdb/testsuite/gdb.dwarf2/mac-fileno.S @@ -209,3 +209,4 @@ func_cu1: .uleb128 0x0 /* Included from line number 0 */ .uleb128 0x0 /* Filename we just started (bug: number too small) */ .byte 0x0 /* end of CU's macro information */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/pr11465.S b/gdb/testsuite/gdb.dwarf2/pr11465.S index 2815509..eaf2925 100644 --- a/gdb/testsuite/gdb.dwarf2/pr11465.S +++ b/gdb/testsuite/gdb.dwarf2/pr11465.S @@ -360,3 +360,4 @@ die149: .uleb128 0x16 /* DW_TAG_variable */ .LASF4: .string "GNU C++ 4.4.2" .ident "GCC: (GNU) 4.4.2" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.dwarf2/pr13961.S b/gdb/testsuite/gdb.dwarf2/pr13961.S index d3b4ace..aa34a0b 100644 --- a/gdb/testsuite/gdb.dwarf2/pr13961.S +++ b/gdb/testsuite/gdb.dwarf2/pr13961.S @@ -378,3 +378,4 @@ SYMBOL(main): .LASF3: .string "main" + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.linespec/break-asm-file0.s b/gdb/testsuite/gdb.linespec/break-asm-file0.s index 94f0ec0..c3beb38 100644 --- a/gdb/testsuite/gdb.linespec/break-asm-file0.s +++ b/gdb/testsuite/gdb.linespec/break-asm-file0.s @@ -231,3 +231,4 @@ func: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.linespec/break-asm-file1.s b/gdb/testsuite/gdb.linespec/break-asm-file1.s index 0106394..ff97bb3 100644 --- a/gdb/testsuite/gdb.linespec/break-asm-file1.s +++ b/gdb/testsuite/gdb.linespec/break-asm-file1.s @@ -257,3 +257,4 @@ func: .byte 1 .Lline1_end: + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S index c93c1cd..886c70d 100644 --- a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S +++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S @@ -163,3 +163,4 @@ .byte 0x0 /* Terminator */ .byte 0x0 /* Terminator */ + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S index 4ac9785..bd81bfd 100644 --- a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S +++ b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S @@ -20,3 +20,4 @@ _start: .rept 5 nop .endr + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index 586c98e..b843b1a 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -3280,6 +3280,8 @@ namespace eval Dwarf { _write_deferred_output + _section .note.GNU-stack "" progbits + if { $file_id == "" } { catch {close $_output_file} } diff --git a/gdb/testsuite/lib/my-syscalls.S b/gdb/testsuite/lib/my-syscalls.S index 5fc3894..7f06f9c 100644 --- a/gdb/testsuite/lib/my-syscalls.S +++ b/gdb/testsuite/lib/my-syscalls.S @@ -54,3 +54,5 @@ my_execve_syscall: #else # error "Unsupported architecture" #endif + + .section .note.GNU-stack,"",@progbits |