[gdb/testsuite] Handle missing .note.GNU-stack
authorTom de Vries <tdevries@suse.de>
Tue, 25 Oct 2022 12:14:34 +0000 (14:14 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 25 Oct 2022 12:14:34 +0000 (14:14 +0200)
On openSUSE Tumbleweed I run into this for the dwarf assembly test-cases, and
some hardcoded assembly test-cases:
...
 Running gdb.dwarf2/fission-absolute-dwo.exp ...
 gdb compile failed, ld: warning: fission-absolute-dwo.o: \
   missing .note.GNU-stack section implies executable stack
 ld: NOTE: This behaviour is deprecated and will be removed in a future \
   version of the linker

                 === gdb Summary ===

 # of untested testcases         1
...

Fix the dwarf assembly test-cases by adding the missing .note.GNU-stack in
proc Dwarf::assemble.

Fix the hard-coded test-cases using this command:
...
$ for f in $(find gdb/testsuite/gdb.* -name *.S); do
    if ! grep -q note.GNU-stack $f; then
      echo -e "\t.section\t.note.GNU-stack,\"\",@progbits" >> $f;
    fi;
  done
...

Likewise for .s files, and gdb/testsuite/lib/my-syscalls.S.

The idiom for arm seems to be to use %progbits instead, see commit 9a5911c08be
("gdb/testsuite/gdb.dwarf2: Replace @ with % for ARM compatability"), so
hand-edit gdb/testsuite/gdb.arch/arm-disp-step.S to use %progbits instead.

Note that dwarf assembly testcases use %progbits as decided by proc _section.

Tested on x86_64-linux.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29674

137 files changed:
gdb/testsuite/gdb.arch/aarch64-unwind-pc.S
gdb/testsuite/gdb.arch/amd64-break-on-asm-line.S
gdb/testsuite/gdb.arch/amd64-disp-step-avx.S
gdb/testsuite/gdb.arch/amd64-disp-step.S
gdb/testsuite/gdb.arch/amd64-i386-address.S
gdb/testsuite/gdb.arch/amd64-init-x87-values.S
gdb/testsuite/gdb.arch/amd64-prologue-skip.S
gdb/testsuite/gdb.arch/amd64-stap-expressions.S
gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.S
gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.S
gdb/testsuite/gdb.arch/amd64-tailcall-self.S
gdb/testsuite/gdb.arch/arc-analyze-prologue.S
gdb/testsuite/gdb.arch/arc-decode-insn.S
gdb/testsuite/gdb.arch/arc-disassembler-options.s
gdb/testsuite/gdb.arch/arm-disp-step.S
gdb/testsuite/gdb.arch/gdb1291.s
gdb/testsuite/gdb.arch/gdb1431.s
gdb/testsuite/gdb.arch/i386-cfi-notcurrent.S
gdb/testsuite/gdb.arch/i386-disp-step.S
gdb/testsuite/gdb.arch/i386-float.S
gdb/testsuite/gdb.arch/i386-permbkpt.S
gdb/testsuite/gdb.arch/mips-disassembler-options.s
gdb/testsuite/gdb.arch/pa-nullify.s
gdb/testsuite/gdb.arch/pa64-nullify.s
gdb/testsuite/gdb.arch/powerpc-addpcis.s
gdb/testsuite/gdb.arch/powerpc-altivec.s
gdb/testsuite/gdb.arch/powerpc-altivec2.s
gdb/testsuite/gdb.arch/powerpc-altivec3.s
gdb/testsuite/gdb.arch/powerpc-lnia.s
gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.s
gdb/testsuite/gdb.arch/powerpc-power10.s
gdb/testsuite/gdb.arch/powerpc-power7.s
gdb/testsuite/gdb.arch/powerpc-power8.s
gdb/testsuite/gdb.arch/powerpc-power9.s
gdb/testsuite/gdb.arch/powerpc-prologue-frame.S
gdb/testsuite/gdb.arch/powerpc-stackless.S
gdb/testsuite/gdb.arch/powerpc-trap.s
gdb/testsuite/gdb.arch/powerpc-vsx.s
gdb/testsuite/gdb.arch/powerpc-vsx2.s
gdb/testsuite/gdb.arch/powerpc-vsx3.s
gdb/testsuite/gdb.arch/powerpc64-trap.s
gdb/testsuite/gdb.arch/ppc64-atomic-inst.S
gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.S
gdb/testsuite/gdb.arch/pr25124.S
gdb/testsuite/gdb.arch/riscv-unwind-long-insn.S
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw-foo.s
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.s
gdb/testsuite/gdb.arch/s390-stackless.S
gdb/testsuite/gdb.arch/sparc64-regs.S
gdb/testsuite/gdb.arch/thumb-bx-pc.S
gdb/testsuite/gdb.arch/thumb-singlestep.S
gdb/testsuite/gdb.arch/thumb2-it.S
gdb/testsuite/gdb.asm/asmsrc1.s
gdb/testsuite/gdb.asm/asmsrc2.s
gdb/testsuite/gdb.base/dup-sect.S
gdb/testsuite/gdb.btrace/instruction_history.S
gdb/testsuite/gdb.btrace/x86-tsx.S
gdb/testsuite/gdb.compile/compile-constvar.S
gdb/testsuite/gdb.disasm/am33.s
gdb/testsuite/gdb.disasm/h8300s.s
gdb/testsuite/gdb.disasm/hppa.s
gdb/testsuite/gdb.disasm/mn10200.s
gdb/testsuite/gdb.disasm/mn10300.s
gdb/testsuite/gdb.disasm/sh3.s
gdb/testsuite/gdb.disasm/t01_mov.s
gdb/testsuite/gdb.disasm/t02_mova.s
gdb/testsuite/gdb.disasm/t03_add.s
gdb/testsuite/gdb.disasm/t04_sub.s
gdb/testsuite/gdb.disasm/t05_cmp.s
gdb/testsuite/gdb.disasm/t06_ari2.s
gdb/testsuite/gdb.disasm/t07_ari3.s
gdb/testsuite/gdb.disasm/t08_or.s
gdb/testsuite/gdb.disasm/t09_xor.s
gdb/testsuite/gdb.disasm/t10_and.s
gdb/testsuite/gdb.disasm/t11_logs.s
gdb/testsuite/gdb.disasm/t12_bit.s
gdb/testsuite/gdb.disasm/t13_otr.s
gdb/testsuite/gdb.dwarf2/dup-psym.S
gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S
gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S
gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S
gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S
gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S
gdb/testsuite/gdb.dwarf2/dw2-basic.S
gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S
gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S
gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S
gdb/testsuite/gdb.dwarf2/dw2-compressed.S
gdb/testsuite/gdb.dwarf2/dw2-const.S
gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S
gdb/testsuite/gdb.dwarf2/dw2-cu-size.S
gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S
gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S
gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S
gdb/testsuite/gdb.dwarf2/dw2-entry-value.S
gdb/testsuite/gdb.dwarf2/dw2-filename.S
gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S
gdb/testsuite/gdb.dwarf2/dw2-icycle.S
gdb/testsuite/gdb.dwarf2/dw2-inheritance.S
gdb/testsuite/gdb.dwarf2/dw2-inline-param.S
gdb/testsuite/gdb.dwarf2/dw2-intercu.S
gdb/testsuite/gdb.dwarf2/dw2-intermix.S
gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S
gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S
gdb/testsuite/gdb.dwarf2/dw2-noloc.S
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S
gdb/testsuite/gdb.dwarf2/dw2-op-call.S
gdb/testsuite/gdb.dwarf2/dw2-op-out-param.S
gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S
gdb/testsuite/gdb.dwarf2/dw2-param-error.S
gdb/testsuite/gdb.dwarf2/dw2-producer.S
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S
gdb/testsuite/gdb.dwarf2/dw2-restore.S
gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S
gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S
gdb/testsuite/gdb.dwarf2/dw2-strp.S
gdb/testsuite/gdb.dwarf2/dw2-unresolved.S
gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S
gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S
gdb/testsuite/gdb.dwarf2/fission-reread.S
gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S
gdb/testsuite/gdb.dwarf2/mac-fileno.S
gdb/testsuite/gdb.dwarf2/pr11465.S
gdb/testsuite/gdb.dwarf2/pr13961.S
gdb/testsuite/gdb.linespec/break-asm-file0.s
gdb/testsuite/gdb.linespec/break-asm-file1.s
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S
gdb/testsuite/lib/dwarf.exp
gdb/testsuite/lib/my-syscalls.S

index 6cc4f80e3490628215c3b7969f47aca534eba0f1..3e6f4edc0cd48bc2a14ae4d9b686bcb468683d62 100644 (file)
@@ -46,3 +46,4 @@ test_func:
         mov     x30, 0x1234
         ret     x0
         .cfi_endproc
+       .section        .note.GNU-stack,"",@progbits
index 99fa834adcad1e9c86f9e42282316a1e9934370c..9af6c8ea5d06abb7820691c9786db2a4ae2965e5 100644 (file)
@@ -33,3 +33,4 @@ test:
        nop                     /* Incorrect.  */
        nop
        nop
+       .section        .note.GNU-stack,"",@progbits
index 32e5fc77be8006c4d4a941beb3bb27b0a5f5b69f..924deef224fdb7e4c064ccf9c926c530bed813f4 100644 (file)
@@ -75,3 +75,4 @@ done:
 var128:
        .8byte 0xaa55aa55aa55aa55
        .8byte 0x55aa55aa55aa55aa
+       .section        .note.GNU-stack,"",@progbits
index c2249629a7acba8b9136227de736bd376f512ad8..cdf36cbc580497765279115bdcef8aa3b26369f2 100644 (file)
@@ -179,3 +179,4 @@ test_abs_jmp_end:
 test_rep_ret:
        repz
        ret
+       .section        .note.GNU-stack,"",@progbits
index cec9898a2f57ff0606e0a46a4d820f3d261cd2e6..fbc7ceadf66016f11f577a788d4f2b48b0c05cd5 100644 (file)
@@ -22,3 +22,4 @@ _start:       .globl  _start
        int3
        nop
        nop
+       .section        .note.GNU-stack,"",@progbits
index 8b6dc02d0055b32bab7deadb894f3dd85cbdc1cd..de8607c84cfc8b2cef1b3ac088059ef1be0758d2 100644 (file)
@@ -29,3 +29,4 @@ main:
         nop
         fld1
         nop
+       .section        .note.GNU-stack,"",@progbits
index 096745e3311323273627451a8336889bc9a18216..1e18150bdf74ceaa7e4e673e1aad3a5236d19fc5 100644 (file)
@@ -26,3 +26,4 @@ pushrbp: .globl pushrbp
 #define MINSYM nop; .globl minsym; minsym: nop
 /*8*/  MINSYM
 /*a*/  hlt
+       .section        .note.GNU-stack,"",@progbits
index 0f0dfee84d697cea46b56d21586a14d84203c3e6..05ba8fc593acbf785225438832310fb9dc0845a8 100644 (file)
@@ -41,3 +41,4 @@ main:
 
        xor     %rax,%rax
        ret
+       .section        .note.GNU-stack,"",@progbits
index 5bc8858d3c2306543e8dbe08f35741b2f61394bd..592a875d0fd60ea66ff258fbd5367c01502bff93 100644 (file)
@@ -40,3 +40,4 @@ main:
        STAP_PROBE1(probe, fail2_probe, 23-@$16)
        xor     %rax,%rax
        ret
+       .section        .note.GNU-stack,"",@progbits
index fcf0b73d6e1ee6f733cb5a03f7a3c57806aeefaa..1545ff9d673d075816ea87f31a1d3489b3ed0844 100644 (file)
@@ -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
index f1a3404e865a4370d70a0832354838541eddcbc5..676875288cdcebff3d1d9c513df005f2b96678a8 100644 (file)
@@ -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
index de6973f905ca3a5bd50bda20b341015388c9b958..ae7b71e7572c021e732c48e19320b150cd7b6d85 100644 (file)
@@ -901,3 +901,4 @@ main:
        j_s     [blink]
 
 .align 4
+       .section        .note.GNU-stack,"",@progbits
index 4228515684a78042ca811c6c363bb6275b672034..9f2ed9fb9df239ea0bfcfe51773f42fb92b1091e 100644 (file)
@@ -1000,3 +1000,4 @@ start_branch_tests:
 
 .Lend:
 
+       .section        .note.GNU-stack,"",@progbits
index cb22699636002974d25f0e00cdc35bbd12638805..5e063b957a4a200eafdb3ba6cfff8cb7899a1f45 100644 (file)
@@ -19,3 +19,4 @@
 foo:
        lr      r0, [tlbpd0]
 .end   foo
+       .section        .note.GNU-stack,"",@progbits
index b67e83e56e063d6f0f3207bcd4a973c2b02f42bd..9f687cd6024d9eda546bdec3a5ae0358db9ba60f 100644 (file)
@@ -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
index 5efe33be200062a28e83084d0928e5397188165e..9ee2b452de9b2f5f68d6aa0ec2411a158de4a5ac 100644 (file)
@@ -126,3 +126,4 @@ _sub2:
        .short  260
        .size   _sub2, .-_sub2
        .ident  "GCC: (GNU) 3.5.0 20040204 (experimental)"
+       .section        .note.GNU-stack,"",@progbits
index 0b90f633c90e36420493124ea09ab6aa3f81ecdb..d373c47b14cf0ff2283f8dac4fabf9ec54211cc4 100644 (file)
@@ -126,3 +126,4 @@ _sub2:
        .short  260
        .size   _sub2, .-_sub2
        .ident  "GCC: (GNU) 3.5.0 20040204 (experimental)"
+       .section        .note.GNU-stack,"",@progbits
index 3ed983c96d4c1f52264fb2795b170525b730b1f7..97640530dff25485d46d21fdaf609885b4ba3418 100644 (file)
@@ -74,3 +74,4 @@ main:
        .cfi_endproc
 .LFE2:
        .size   main, .-main
+       .section        .note.GNU-stack,"",@progbits
index af1ac54c9d1b621becbd7541e853ea5d34ee66cd..e5f6a4c3669e77c6bc902f673cec24bec8bb7c9e 100644 (file)
@@ -121,3 +121,4 @@ test_call_end:
        .global test_ret
 test_ret:
        ret
+       .section        .note.GNU-stack,"",@progbits
index 82c7902d08a137f575f3004a01eaf5b75fbacdc8..13bd2c3d77ba051ab2cf6455a72484ef2f83e6ee 100644 (file)
@@ -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
index 1a17b2216b332e14f21316b1cb57f3d6a3e34012..bdacfbda4a559f3342d54df37d185db64428a833 100644 (file)
@@ -28,3 +28,4 @@
 SYMBOL(main):
        int3
        ret
+       .section        .note.GNU-stack,"",@progbits
index bb7f95dd94c1221b09163e8e70d8d53bd1f8d98f..7fc7cd5a8bd4ce27f2b1eecd2202c4ba0dcb0bb2 100644 (file)
@@ -28,3 +28,4 @@ foo:
 bar:
        move    $2, $8
        .end    bar
+       .section        .note.GNU-stack,"",@progbits
index 8b756bd983699a3eb4fc45f6c2a9abf8f6e92bf9..384a5f5850260af35edc1d9b093ddb221b0d53bf 100644 (file)
@@ -56,3 +56,4 @@ main:
        bv,n %r0(%r2)
        .EXIT
        .PROCEND
+       .section        .note.GNU-stack,"",@progbits
index f297699ed7afd126927c883f653952f9079c7de5..6d253828ce02218cc44d14921701d14dea98f901 100644 (file)
@@ -68,3 +68,4 @@ main:
        bve,n (%r2)
        .EXIT
        .PROCEND
+       .section        .note.GNU-stack,"",@progbits
index dfc922c27fb93795b4d840ed5dd7af9c04d0d04d..84484ec6960543156ccd07b2e98f21db0b354e9a 100644 (file)
@@ -33,3 +33,4 @@ main:
        blr
 
 
+       .section        .note.GNU-stack,"",@progbits
index 25400ddaf994afeecb9394c907a1f495e41328c3..d9d66fd16df5c8359058273b73f6cda5f93c1600 100644 (file)
@@ -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
index f01e9a02ad9e4ba6e70e47f822d07b1d90972163..4e74044df45b9c4469f298eea64310e821eb05f9 100644 (file)
@@ -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
index ae9571c7372ed43a5c0fdbca7b3a807db44d2095..843a6e8c05f1b5bce8d05bca7a0e0bdbef5b21dd 100644 (file)
@@ -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
index d81607d1043ef6794f215bf17de48f873699deca..86fd319ccb2cc2af56f3f36f93461355ddab83af 100644 (file)
@@ -31,3 +31,4 @@ main:
        lnia 9  # /* set r9 */
        blr
 
+       .section        .note.GNU-stack,"",@progbits
index d39ec23bffeefb39481045d3f75a0b1dc54c6837..ede6dc936a46d8ef4e4d5150481c9e0d3b7003d1 100644 (file)
@@ -43,3 +43,4 @@ mydata:
        .long 0xabbbcbdb        # <<- loaded into                vs7
        .long 0xacbcccdc        # <<-
 
+       .section        .note.GNU-stack,"",@progbits
index 7a8bab43f703b9662b9ed8d65613ba83abb56694..9ded00a8226bf229a7537a043d607fb6c10ebc7a 100644 (file)
@@ -1015,3 +1015,4 @@ func:
        .long 0x80060003
        .long 0x05000000        /* xxspltiw vs0,8 */
        .long 0x80060008
+       .section        .note.GNU-stack,"",@progbits
index 92e9bc50eb8a2409dd8f860d5b4e920b8c4e5f86..329ed5e7a8aa38ebb980358aa5e09f35a0dfbd91 100644 (file)
@@ -108,3 +108,4 @@ func:
        .long  0x7d80e3a6    /* mtppr   r12                */
        .long  0x7da2e3a6    /* mtppr32 r13                */
        .long  0x7d605264    /* tlbie   r10,r11            */
+       .section        .note.GNU-stack,"",@progbits
index 4367a6f6e524246f3e9f253594fcc080d5813db8..6a8dcc47a7715e91dd6509b4dfde316a8b6fd839 100644 (file)
@@ -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
index d15af59d279c778d4b1adf143b1cd9e6c15213f2..09dcb38183a6ffb961c241994e308b2204059978 100644 (file)
@@ -384,3 +384,4 @@ func:
        .long  0xffd7048e    /* mffscrni f30,0             */
        .long  0xffd71c8e    /* mffscrni f30,3             */
        .long  0xfff8048e    /* mffsl   f31                */
+       .section        .note.GNU-stack,"",@progbits
index dd60fcac4e1c201f153c960579552336aaf951da..d7424ffc9b0315f948af036801f1e2d6be231713 100644 (file)
@@ -33,3 +33,4 @@ FUNC_START(foo)
        mr 1,11
        blr
 FUNC_END(foo)
+       .section        .note.GNU-stack,"",@progbits
index 29c16c147dc0cec9742f58453de3dd4d6cc373bc..452c2b8247bf8ada1f12ab568540f63907ba1805 100644 (file)
@@ -22,3 +22,4 @@ FUNC_START(main)
         mtlr    sp
         blr
 FUNC_END(main)
+       .section        .note.GNU-stack,"",@progbits
index cc42791152900abd75d6880cbcd78b7a394993f6..8e31c02a000ccda6145a163d466f9eb8c799806d 100644 (file)
@@ -29,3 +29,4 @@ main:
   li  3, 0
   blr
 
+       .section        .note.GNU-stack,"",@progbits
index 7604b4a82a5c1f6d70c3f81ecd25fe00bcebcfb7..5ac2cace4fe891542faa8ea169bb62dc13054b64 100644 (file)
@@ -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
index aa3dff6b7dca88e879933f0c00170f2d876411ef..71d9cf7af8f07faac17f9820ac51f9e0f5ad858a 100644 (file)
@@ -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
index 8dd344dd78f1a66942cfd5172071902e5b961713..1e66d21f4315aadd44bf3795a7cf89287f6fdac3 100644 (file)
@@ -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
index 6b20e7648aa8be20157a528982909ca9b36deee2..75c37afebe1711f4ba0a724427736ee4dd970bf1 100644 (file)
@@ -31,3 +31,4 @@ main:
   li  3, 0
   blr
 
+       .section        .note.GNU-stack,"",@progbits
index 0dbb25d84d33680f72e93efb78ceb0b341707221..9d6b4fed6722563bdf4140fd663c2588f2026b0b 100644 (file)
@@ -59,3 +59,4 @@ main:
 #else
        .size .main,.-.main
 #endif
+       .section        .note.GNU-stack,"",@progbits
index 873a45af82afd4997f759f5b451b52696fc4088c..db56803c3fffdcd78793b5644736f3dc873b871a 100644 (file)
@@ -98,3 +98,4 @@ test_atomic_sequences:
 #else
        .size .test_atomic_sequences,.-.test_atomic_sequences
 #endif
+       .section        .note.GNU-stack,"",@progbits
index 1f54cfd585c5dde1b251f6e6cb4cbd069304dea5..7ed0a62ce5caf289e6bba652abab2720abcedaca 100644 (file)
@@ -33,3 +33,4 @@ main:
        mov     r0, #0
        bx      lr
        .size   main, .-main
+       .section        .note.GNU-stack,"",@progbits
index 00e0a34b65801c1570244e6b88c8180d4297b08b..e2409967b3e1ec9891f579700c2e6e8aa4f7f0a4 100644 (file)
@@ -60,3 +60,4 @@ func:
        addi    sp,sp,16
        jr      ra
        .size   func, .-func
+       .section        .note.GNU-stack,"",@progbits
index e0c538f8c3e83ac1c7ecaabf7a779770155c91f4..c12c16eab89aba01b2183e46428191c3aed6df13 100644 (file)
@@ -72,3 +72,4 @@ foo:
        addi    sp,sp,32
        jr      ra
        .size   foo, .-foo
+       .section        .note.GNU-stack,"",@progbits
index aead673f09a3518243ec0b7d747950aafe1cd2a2..dfb0f361f99c117fd10a424a79dd62564f7705f1 100644 (file)
@@ -45,3 +45,4 @@ foo:
        addi    sp,sp,32
        jr      ra
        .size   foo, .-foo
+       .section        .note.GNU-stack,"",@progbits
index 9763e1fc8d5600a816f17242aea61eb7b1743f21..7d2265dcb3af45986797ee53b9928149a84a3b63 100644 (file)
@@ -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
index cd9301baaa59a06573914b8d4a87658a8053041e..ff3c7411946a8213af5011e2897c294bdcc9e2fe 100644 (file)
@@ -134,3 +134,4 @@ test_fsr:
 .align 8
 flags: .xword 0x0000000000000000
 .size flags, .-flags
+       .section        .note.GNU-stack,"",@progbits
index d97c4bf865f6d81273d7ae859a4ea4dd42fab88f..6d72265e4a7c66d5fac8439e9b3cf6d2f6eff4f4 100644 (file)
@@ -32,3 +32,4 @@ main:
        mov     r0, #0
        bx      lr
        .size   main, .-main
+       .section        .note.GNU-stack,"",@progbits
index 2a2e8e340e30397322d2abd46c14cd48c62fd736..c0291a036f9961657e1332ced6960293cd4a9841 100644 (file)
@@ -38,3 +38,4 @@ main:
         pop    {r3, pc}
        .size   main, .-main
 
+       .section        .note.GNU-stack,"",@progbits
index 0b06c82f672f73609fc3e7c218fcc1cb12a2af2e..892c562d2ebfe0c53c3967e249350f94b2bd1634 100644 (file)
@@ -180,3 +180,4 @@ it_breakpoints:
        bx      lr
 
 #endif /* __thumb2__ */
+       .section        .note.GNU-stack,"",@progbits
index ddf879008426680aad0e9bdb4f799908ee278982..35b39ca7e1a8e749c797a4b5c646c312e9c3a4d0 100644 (file)
@@ -85,3 +85,4 @@
        gdbasm_datavar  staticvar       5
 
        .include "note.inc"
+       .section        .note.GNU-stack,"",@progbits
index e585ee22c3aa6e630e17626a23caf5cf1382d192..288b708f1f780b7fb522b05c84f4349b56872e56 100644 (file)
@@ -19,3 +19,4 @@
        comment "mark: foo2 leave"
        gdbasm_leave
        gdbasm_end foo2
+       .section        .note.GNU-stack,"",@progbits
index b33378ec454c1d86a78a97d9be3a1ea9ae64b770..2af269fffdf0eea1a323970313aacc589620b811 100644 (file)
@@ -20,3 +20,4 @@ var1: .byte   1
 
        .section        sect2, "a"
 var2:  .byte   2
+       .section        .note.GNU-stack,"",@progbits
index 8f9b834345351a90033bd32a75b03e066d3b95a1..23901a34446d27decb298d33e0e3d8c7549c15a8 100644 (file)
@@ -30,3 +30,4 @@ loop:
        jmp .L1
 .L2:
        ret /* bp.2 */
+       .section        .note.GNU-stack,"",@progbits
index bc4009d0c2346ffd21f9461047e355ad656e5003..0cfc329342e2461fd6ea0d0e94b5a5ceb57f2517 100644 (file)
@@ -27,3 +27,4 @@ test:
 .Lhandler:
        mov $1, %eax
        ret
+       .section        .note.GNU-stack,"",@progbits
index 83644cb4a5defc3188b468f9407401c01508cff7..b2e178c952d5a30811bd29dce42f6f06209df389 100644 (file)
@@ -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
index a686cef2f743592ee0b72ad494f69b4c56d36bc2..e699bcffdeb9d3c35023bb42f61048886c5e7b48 100644 (file)
@@ -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
index 6510d40ef4e23b675974b770f7b4112b7b6c2c16..0fd865642679aee2518aa43fe8099bde470af1fa 100644 (file)
@@ -354,3 +354,4 @@ system_control_tests:
 block_data_transfer_tests:
        eepmov.b
        eepmov.w
+       .section        .note.GNU-stack,"",@progbits
index 593d8bfefee2f290066c4c670282341ee18d9ee9..12ace7d3f153d056f7bdb779ec73d34cc1176886 100644 (file)
@@ -1736,3 +1736,4 @@ fmemLRbug_tests_4
        bv,n 0(%r2)
        .EXIT
        .PROCEND
+       .section        .note.GNU-stack,"",@progbits
index 32357b0401b742df6292fb4173d6370e0da98235..c48dd6431fd032ea50040207307166cd7bf63c9b 100644 (file)
@@ -215,3 +215,4 @@ sub_tests:
        sub 32767,a2
        sub 131071,a2
        subc d1,d2
+       .section        .note.GNU-stack,"",@progbits
index 3ad6c95e6a1db1d1edf8a55a9254ecc58728d316..e7ab6e4cd85d7f62e32e2d0981d219692f1e191c 100644 (file)
@@ -298,3 +298,4 @@ sub_tests:
        sub 131071,a1
        subc d1,d2
 
+       .section        .note.GNU-stack,"",@progbits
index e5969f5ea1a82d872f3c3369dd544e1e3256660b..ab70da38758e8c2b53d07ebc7fd8fb0f389dd752 100644 (file)
@@ -52,3 +52,4 @@ _fp_misc_tests:
        sts     fpscr,r3
        sts.l   fpscr,@-r3
 
+       .section        .note.GNU-stack,"",@progbits
index 6848304693fdfe039b3f77d0574bc37f44f96cc6..d79d8aa70f7f9d1358657b9674cf5283d8893b47 100644 (file)
@@ -1105,3 +1105,4 @@ label:
 
        .end
 
+       .section        .note.GNU-stack,"",@progbits
index 4615bcc0e0b727ff66bbe7d6bba6173999e68269..b16da0233e40884c6882b9ebaa52a3012c69bcae 100644 (file)
@@ -236,3 +236,4 @@ _start:
     mova/l.l @(0x12345678:32,@0x9ABCDEF0:32.w),er1         ;015F48D99ABCDEF012345678
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index 2b832475ba7b41930a3d0707b50f1572b496e101..024ae61a2b7752f59388e095e393ffabfaf8be1d 100644 (file)
@@ -976,3 +976,4 @@ _start:
     add.l @0x12345678:32,@0x9abcdef0:32                    ;01046b2c1234567848109abcdef0
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index d851760d8aed873b328b6a687e58abaace63949c..066f0236436b3095282fb002ccedace88ab905a4 100644 (file)
@@ -975,3 +975,4 @@ _start:
     sub.l @0x12345678:32,@0x9abcdef0:32                    ;01046b2c1234567848309abcdef0
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index ee034f097c43a8573e5a23db9d4ca5d058e2b79f..8d5b393dcbd72a870b0bb4cdb4548d7ea595b6b5 100644 (file)
@@ -919,3 +919,4 @@ _start:
     cmp.l @0x12345678:32,@0x9abcdef0:32                    ;01046b2c1234567848209abcdef0
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index 75a919510b42021f7765a29b2ec18ef9f506f9ab..dd0e31455474ced41e2a4b89db8341472c62bf5f 100644 (file)
@@ -186,3 +186,4 @@ _start:
     divs.l er3,er1            ;01d25331
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index 6ad7128d3ff2dc662cd212fdb104114d5eb36f89..a4afef438be4b54cba9002ad4de088a89c58993f 100644 (file)
@@ -171,3 +171,4 @@ _start:
     exts.l #2,@0x12345678:32         ;01046b281234567817e0
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index da4e216c58b267d0af1898df411847091ff9aa6c..0fa35abb75e06477ac4ae2051790413b5bb87292 100644 (file)
@@ -970,3 +970,4 @@ _start:
     or.l @0x12345678:32,@0x9abcdef0:32                    ;01046b2c1234567848409abcdef0
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index ccd479cb20a6f70ca1bf8ee9e18c4b9cf2d8b062..05e75105f4d31ca260fc35bbe759397d11c75700 100644 (file)
@@ -970,3 +970,4 @@ _start:
     xor.l @0x12345678:32,@0x9abcdef0:32                    ;01046b2c1234567848509abcdef0
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index 0459c109f5dd148e1ab8e8714484cc88cec1aeba..457b67e24832e72b9847f1160a0596907c94634e 100644 (file)
@@ -970,3 +970,4 @@ _start:
     and.l @0x12345678:32,@0x9abcdef0:32                    ;01046b2c1234567848609abcdef0
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index 4768591dd7ee6bc748fc821eead5dfde256bbd7f..228a6740c53f87099fe865c9b43d25201d838862 100644 (file)
@@ -1175,3 +1175,4 @@ _start:
     rotr.l #2,@0x12345678:32         ;01046b281234567813f0
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index 4c45b2a02a148a90a7dc92b6fd5fa292ca950e51..2664a75ad6fdab448373849ad988aa202a72f44d 100644 (file)
@@ -174,3 +174,4 @@ _start:
     bfst r3h,#0x34:8,@0x12345678:32           ;6a3812345678f334
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index 69db411ac523d6b84678f350f571177516a7892c..812cbcf3306c7ea8f5fcf70770d5062a2712ffb8 100644 (file)
@@ -157,3 +157,4 @@ _start:
     nop                        ;0000
 
        .end
+       .section        .note.GNU-stack,"",@progbits
index 6bffeab9d3c8f2a497c10a571ce6080032e92d97..d8932673cb5c89b74de2a1eef8ac9b22f90bc55e 100644 (file)
@@ -197,3 +197,4 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index 742bf5245cb98e9f5fa29c0a67df666e70c05426..7a9e6168b12179e07e77e3fcd85d78eba342afb9 100644 (file)
@@ -149,3 +149,4 @@ LELTP:
         .uleb128 0x1
         .byte   0x1
 LELT:
+       .section        .note.GNU-stack,"",@progbits
index cb875da2c4ca38af9f1c4f601a0c2fbd3de52531..1771593b7e552ac5409b2bb9f9131b96ca24ebde 100644 (file)
@@ -149,3 +149,4 @@ LELTP:
         .uleb128 0x1
         .byte   0x1
 LELT:
+       .section        .note.GNU-stack,"",@progbits
index 5ce56921d4e950282d12dc88b440cc0d4b967e93..2a1d4b5bc2855dcc48a82fa06151bbaf58c8f7f0 100644 (file)
@@ -53,3 +53,4 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index 0b8e8ccada3dcdf5f92de229d355586b321d9b87..c79fd5c7cbc150c9df2db8f0054406b78242a951 100644 (file)
 
        .section        .debug_line
 .Ldebug_line0:
+       .section        .note.GNU-stack,"",@progbits
index 3aa369aa6a3f83fa94deed4167c328ce86fec0d6..3833799d0176c68d645f9c4b5452bc24728c369b 100644 (file)
@@ -246,3 +246,4 @@ func_cu2:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index 83d2147e8c3053a82c00059e3bdf596138e1f096..3792e70a641183e39c6617a612f4b2994319dd74 100644 (file)
@@ -27,3 +27,4 @@ some_func:
        .size some_func,.-some_func
 some_func_end:
        nop
+       .section        .note.GNU-stack,"",@progbits
index b4583716881d1c10a458320cada9d605fb7997c8..46178d58fad9be7632a611eb05f9636c4496aaf8 100644 (file)
@@ -71,3 +71,4 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index 93eba201b8bb887430ba6b1ac672a46ab34eef6b..9be8b9963b52fd133f7020f15e427287ee6ae417 100644 (file)
@@ -197,3 +197,4 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index 2107d88b4385a7b54814e85889b9638e80cf5bbc..c74781b0de33cb269f6933492413ec0032e9439e 100644 (file)
@@ -154,3 +154,4 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index e51a18186fda03e7f24b1202cebca2f9568202cd..f7dd7ca55e381bade9d363b6dc992150b36ff9bc 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 5128e252896969dfb3568a35d42223525d17cf4e..bc8317752e03b6cdc00b45b3c580e99760651fe2 100644 (file)
@@ -239,3 +239,4 @@ gcc43:      .globl gcc43
        .uleb128        1
        .byte           1
 .Lgcc43_end:
+       .section        .note.GNU-stack,"",@progbits
index 00d7c3aa8fbe3e0ec91084843bbba05c0f398a6a..8c778423cd82f6a0aab9a8111aaa9ed5b8d0a616 100644 (file)
@@ -218,3 +218,4 @@ func_cu1:
        .byte           0x9c
        .byte           0x00
        .byte           0x92
+       .section        .note.GNU-stack,"",@progbits
index 09263ff9b08b1535b605b126a4d5ceec7d902d92..26fe111369cfeca356bb25785b14a5ef773afe98 100644 (file)
@@ -249,3 +249,4 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index 20061ba23e604225622f3c727aa91c912c03f6ca..8b35f9996147e839ddc1d57f5ff94b3a1dc3add4 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 1aad8a5af35b0f2c722e0ea28df74c43cc40a4a8..de5759877d2599f41c951724b055d763d8a61cb7 100644 (file)
 
        .byte           0x0                     /* Terminator .debug_abbrev
                                                   section.  */
+       .section        .note.GNU-stack,"",@progbits
index 205b7645d54b15c1c2a3b1c8f89747e6d8415d0b..9d8e400c6a0fde516c3bf7be31cadff2ecae1e15 100644 (file)
@@ -74,3 +74,4 @@ dieb:
        .byte   0x0
 
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index ab5a2f712aa48178bc9aa7219b57acbb32017e85..3254ffb5534589d998aa311f3c6d406bb25284ed 100644 (file)
        .byte   0x0
        .byte   0x0
 
+       .section        .note.GNU-stack,"",@progbits
index 298658fbdbf6d4aad061e9ab1a40b03b8b012c38..9bf275f13b49239b7c18397d26793b78bcdad177 100644 (file)
@@ -31,3 +31,4 @@ main_end:
        .section        .debug_abbrev
 .Ldebug_abbrev0:
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index f6dbb91e14a0f85c9ef1ae075ef5a2a1bcd95d55..b2fb1fcb05c676acaa6488742c18cf6454d8d7ba 100644 (file)
@@ -106,3 +106,4 @@ var:        .4byte  1
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 83cc71fb159db109431a141ccecbed66c87a21d4..c9ad27b2b374435a12e23f85b55aa8576a02b372 100644 (file)
@@ -80,3 +80,4 @@ dieb:
        .byte   0x0
 
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index 491a985823f2332f6dd98be06309da5be190a270..223044d7bf7ea1efb6fa78d084520f3097699edf 100644 (file)
@@ -102,3 +102,4 @@ loclist:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index 635577a28734884afc73668fe7a60059b63ac2ad..7895ab7a2bbd501d572d76b7f862057e22657fe1 100644 (file)
@@ -51,3 +51,4 @@
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 834b35e5f50f54ee66c6d8a37a93f1e30735ba8f..61e6e74d902937fbe10603371a1baaa440a9249d 100644 (file)
@@ -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
index 4ccc7bb6947b105c1e16e66c7249ff3ff88e388b..e63966ccae60b7d1cba703334c7d6d3d169e9af2 100644 (file)
@@ -246,3 +246,4 @@ p__top:
 .Lline1_begin:
         .byte   0
 
+       .section        .note.GNU-stack,"",@progbits
index 9c4b576fd3901638b98b93bd4f5f8dc994edfcd4..20b2a9f9c666405ed2da9c36aa7c8eb98f4df112 100644 (file)
@@ -96,3 +96,4 @@
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 1c79805c2b53038890a55109de7bc1f53aae8253..14958e6092d9c35bdea70168012aa72b9958e18d 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 3c9abadb94702b31f75061310e529b2e2b660764..d8857fe675dde68ff15e07656b67880fa73fd313 100644 (file)
@@ -314,3 +314,4 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index a2dd41f05144abcf7b21f9f75a2145ddd2aa0c66..208a14fdb5f35a49c35f9ad017fef230a0eed6de 100644 (file)
@@ -198,3 +198,4 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index 8f23b3cc7bc083d64a9b4891a41e1278f92c447f..0b8aec84c393f2a898760260bf9d67c77ce763dd 100644 (file)
@@ -132,3 +132,4 @@ c:  .4byte  0
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 248908bb07272376b7553c49f62833a35bb8590d..c87092c031ac50f3c1f2f67809423715c40b3a80 100644 (file)
@@ -115,3 +115,4 @@ func2:
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index f3fe651d92da980bcab76af2ea8b9109795042a5..c55e86fb12762599d9d877a61fa9c6f69f0c6469 100644 (file)
@@ -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
index 988f0955041d87a105d42a3ec8680b027246bf13..5d7d326aa9f6bd09d3f88787295f3367fe7ef15d 100644 (file)
@@ -324,3 +324,4 @@ resolvable:
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 80f62c38a84ab7d9e48587fcef69e79ec5273aa8..e3a02e795b7252cd3cb04e287dc36c14e09c7f26 100644 (file)
@@ -178,3 +178,4 @@ inner:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index a0bda9fa57855331e45d8c4de688ee54101795b1..213b0bc3d9eb22fd73e8da84c349a29f2d31d2e3 100644 (file)
@@ -209,3 +209,4 @@ outer_after:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index 3069f07ff78a3b33244c24c379230a56bc0224ba..60ef039314ca7f228eee404a593cf6d140e63b1d 100644 (file)
@@ -166,3 +166,4 @@ loclist:
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 91657263288347c2f2edcb88c170b44aee96f0ce..51f9f09d1d704dd72b33236169331a4319aa7857 100644 (file)
@@ -675,3 +675,4 @@ int_param_two_reg_pieces:
         .byte   0x0
 
         .byte  0x0
+       .section        .note.GNU-stack,"",@progbits
index 6c7ff185cfcff6621515fe8e47666e87a2a12c0e..eff6467acbcc835b485f7cd0763d2512da2f02ba 100644 (file)
@@ -130,3 +130,4 @@ aa551234:   .byte   0xaa, 0x55, 0x12, 0x34
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index f22e645084860cb33842fec8ed9b1a642e699500..a2a5a1d08a92b43c1b1500c39fe54ea3446f1ede 100644 (file)
@@ -106,3 +106,4 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index df83b67dfddb65289828714b74f6e68d8b3ddc1b..011af6989203ce988ac4d72307cab87bf6e8cd5e 100644 (file)
@@ -198,3 +198,4 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index 38bbe013ddcb7bdd99c6a293b3f389ede3328dbd..4780025dca5d485d60494f3823a6f8851f79ef63 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 8ac559f2c45d916578e65873db6c1d278b344ce7..ad834e992df50affbf9e4c693ef5bb4b8b667a6b 100644 (file)
@@ -47,3 +47,4 @@ foo:  .cfi_startproc
        jmp 1b
        .cfi_endproc
        .endfunc
+       .section        .note.GNU-stack,"",@progbits
index 90f5b8e3217a089784ee593b636250326b0ec020..1da2a52e2dd4124fe433f556a3d7d15ff3c75a6e 100644 (file)
@@ -167,3 +167,4 @@ d:
        .string "sizetype"
 .LASF1:
        .string "char"
+       .section        .note.GNU-stack,"",@progbits
index b8a18f647b1c3084d58499c314bf197d96f60adf..1245c1cf08078cfaa95afb4272ccd2199dee915a 100644 (file)
@@ -397,3 +397,4 @@ loclist:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index dc392fe01d63d1b961ee01c84b532e834ed66b86..8bef4f062f12e24f60b998e36f5eed4023c614f0 100644 (file)
@@ -66,3 +66,4 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index 1857a2c10fa2489a4d2d78d4a0091a3a068d589b..f154b680f5ffbe312b7f6852bf6d80d354e40e25 100644 (file)
        .string         "hello world!\n"
 .Lemptyname:
        .string         ""
+       .section        .note.GNU-stack,"",@progbits
index 2313e0c1c48dca38c36bd5f437fc54638dbcac1a..d1d78f15a058c433eccb24c364f6d395fd2d84ba 100644 (file)
@@ -178,3 +178,4 @@ SYMBOL(var):        .byte   2
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index d05e06c792c0b1cb1a5ead2d5d9a30d78a5072fa..5d402e9cbe7cfb574f35c2619e389fa1c9032211 100644 (file)
@@ -90,3 +90,4 @@
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 38231f18f41ba47b99605739a47041f8f69c4e24..0d9ad40c82a79e88b1f4e394d8c101e01f908f99 100644 (file)
@@ -85,3 +85,4 @@ types_start:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+       .section        .note.GNU-stack,"",@progbits
index c829fef32c7ed2b215492d35bc3600b93d298395..92c6be493635a0f2262770ab657fd588c85bfe82 100644 (file)
@@ -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
index 268745275f4340a2144fa53a2d6b3ad4bf3adf68..5ec9c8c494bef8529244bf3f47179363c214feed 100644 (file)
@@ -164,3 +164,4 @@ __start_high_pc:
 
 .global __cu_high_pc
 __cu_high_pc:
+       .section        .note.GNU-stack,"",@progbits
index 462781495a194117ee7a7ae9d170734a5e5d309f..ca70acb421fbeb51b7d997064eb66954eb487aa5 100644 (file)
@@ -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
index 28155090f237ec898732029ac50c9e1d9669dcff..eaf2925a768563c3f05b28de5a63a93d77b1f0a1 100644 (file)
@@ -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
index d3b4acee53fd0b5b219921a2cb4095682ac8efa1..aa34a0bafce3853f1f37f1c02aab47e0a7e6def9 100644 (file)
@@ -378,3 +378,4 @@ SYMBOL(main):
 .LASF3:
        .string "main"
 
+       .section        .note.GNU-stack,"",@progbits
index 94f0ec0daa3ab18801d76927369cbd643f19a234..c3beb38cba4d17af4195851fcc3433ab72d496de 100644 (file)
@@ -231,3 +231,4 @@ func:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index 0106394d997a5db06024c8c39250e62fe58183f7..ff97bb3f977bbf61f65c12e116b106a93e390c95 100644 (file)
@@ -257,3 +257,4 @@ func:
        .byte           1
 
 .Lline1_end:
+       .section        .note.GNU-stack,"",@progbits
index c93c1cdddbfdb830ceea7f023c22dabbacaa293c..886c70d8746ed80f681b3cddce6b86264d73dd40 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+       .section        .note.GNU-stack,"",@progbits
index 4ac9785a5d576ff927022308a54d6e2bc03739ec..bd81bfd21e136d37af5785f633fcde2111c3344d 100644 (file)
@@ -20,3 +20,4 @@ _start:
        .rept 5
        nop
        .endr
+       .section        .note.GNU-stack,"",@progbits
index 586c98ececcfa1f3b057cb52bf5ade209bf72162..b843b1acf75032224d08e9f4ea274d601880c469 100644 (file)
@@ -3280,6 +3280,8 @@ namespace eval Dwarf {
 
        _write_deferred_output
 
+       _section .note.GNU-stack "" progbits
+
        if { $file_id == "" } {
            catch {close $_output_file}
        }
index 5fc38948217e8e1cb72e63a14ebed30b2c2a5588..7f06f9c398b80b16412a3a2a43762a2e36563f2c 100644 (file)
@@ -54,3 +54,5 @@ my_execve_syscall:
 #else
 # error "Unsupported architecture"
 #endif
+
+       .section        .note.GNU-stack,"",@progbits