]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Use more %progbits for arm
authorTom de Vries <tdevries@suse.de>
Fri, 24 Nov 2023 14:41:22 +0000 (15:41 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 24 Nov 2023 14:41:22 +0000 (15:41 +0100)
On pinebook I ran into:
...
Running gdb.tui/tui-layout-asm-short-prog.exp ...
gdb compile failed, gdb.tui/tui-layout-asm-short-prog.S: Assembler messages:
gdb.tui/tui-layout-asm-short-prog.S:23: Error: \
  junk at end of line, first unrecognized character is `,'
...

Fix this by using %progbits instead of @progbits for arm.

Approved-by: Luis Machado <luis.machado@arm.com>
Tested on x86_64-linux and pinebook.

59 files changed:
gdb/testsuite/gdb.arch/pr25124.S
gdb/testsuite/gdb.base/dup-sect.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-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-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-file.exp
gdb/testsuite/gdb.linespec/break-asm-file0.S [moved from gdb/testsuite/gdb.linespec/break-asm-file0.s with 96% similarity]
gdb/testsuite/gdb.linespec/break-asm-file1.S [moved from gdb/testsuite/gdb.linespec/break-asm-file1.s with 97% similarity]
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S

index a7ed1a024729487b3f4000db734b9e7b7d300065..27b4e6834889975b777b31ebe50059d1e48fc064 100644 (file)
@@ -33,4 +33,4 @@ main:
        mov     r0, #0
        bx      lr
        .size   main, .-main
-       .section        .note.GNU-stack,"",@progbits
+       .section        .note.GNU-stack,"",%progbits
index e374d578dc0fbb2797ea6c97c6e29ba488169cc9..c51bc91d6d85db4129057e1c5003c850fb495f1b 100644 (file)
@@ -20,4 +20,8 @@ var1: .byte   1
 
        .section        sect2, "a"
 var2:  .byte   2
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index ec180e6508004bb3e7fe46fd22abf553d966d998..4e50c0fe885e33398fa579138f416a824e3cfa69 100644 (file)
@@ -197,4 +197,8 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index f0276adf3be2f2714d8a1d6ebf662acf54078b6b..e1fccd1979ff217800a81c89882d5eac67fad8dc 100644 (file)
@@ -149,4 +149,8 @@ LELTP:
         .uleb128 0x1
         .byte   0x1
 LELT:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 59dd26c3c8554ad2b79094db64e60643a0bfacff..2ff445e36a45d2dca3df14416c9552dd3a9fedfc 100644 (file)
@@ -149,4 +149,8 @@ LELTP:
         .uleb128 0x1
         .byte   0x1
 LELT:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 960a97c39a87e3cd94de6e9e40e05b25d925399f..d58c8bfedf85746850fd4e52e9a7716144031401 100644 (file)
@@ -53,4 +53,8 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 2c62b613c57a57f71de881065806c8def58be02b..dc6b86648bd5e8511404c47947c4215eda62d3c7 100644 (file)
 
        .section        .debug_line
 .Ldebug_line0:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 8b88ba6d1efbcb866130539015555d1492189d1e..45cd7c42fb814683eb2e23d30176257f32273b75 100644 (file)
@@ -246,4 +246,8 @@ func_cu2:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index d90d4e2b4acd2500ed9364b1c862a2891624a718..192bfac844f9ad8286fd506d562fbf4edd248716 100644 (file)
 
        .section ".other", "x"
        .global some_func, some_func_end
+#ifdef __arm__
+       .type   some_func, %function
+#else
        .type   some_func, @function
+#endif
        nop
        nop
        nop
@@ -27,4 +31,8 @@ some_func:
        .size some_func,.-some_func
 some_func_end:
        nop
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index d7654bb1c1433600598bbf84ab52f063bed28157..10ea1ae24cb23d6380c59cb2f3b66b4c876d724b 100644 (file)
@@ -71,4 +71,8 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 372ab23cb3b6e8c1190170335bafe9e49bba975b..7b37162b0371035b71ec7df9f2e661eeda4ff81d 100644 (file)
@@ -197,4 +197,8 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 39e462b7149aa220ab6f255c556cb3555e5e0cf9..ffe29d17a3ae7c574f9549013e5803fbbd430e16 100644 (file)
@@ -154,4 +154,8 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 1059ace3b3e33393975f384350bd21cbffb29030..84e6ee9a48568487873fed5053aa4a0254a10c5a 100644 (file)
        /* The .debug_names-based index support depends on
           .debug_aranges generated by GCC.  (.gdb_index includes a
           gdb-generated map instead.)  */
+#ifdef __arm__
+       .section        .debug_aranges,"",%progbits
+#else
        .section        .debug_aranges,"",@progbits
+#endif
        .4byte  .Laranges_end - .Laranges_start // Length of Address Ranges Info
 .Laranges_start:
        .2byte  0x2     // DWARF Version
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 8a8ecfc397b1188156727becdbf27f848f9d1edf..4d626817f1a834252b390d26ef60ac91edf717bc 100644 (file)
@@ -239,4 +239,8 @@ gcc43:      .globl gcc43
        .uleb128        1
        .byte           1
 .Lgcc43_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 509fbea4a3b39aa86a69a92ac9cd060efba75518..14cf286f393b3533e70b96d745292897a171eac1 100644 (file)
@@ -218,4 +218,8 @@ func_cu1:
        .byte           0x9c
        .byte           0x00
        .byte           0x92
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index dfc882ac5302433bca753ee96aafcf8ae13b6ece..ff81c18732dbea85103ba131b73c65f4f97ecc8c 100644 (file)
@@ -249,4 +249,8 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 070f24b407dd3f90f721e7d138182cfb746fc678..e217c736dd856e7f6172624c23827bb08e1a7659 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 99465e2c015cc0945f17f73dff10ac1acfaaff6f..b6f8a2117b3055bc1150803edf36bd3cfb43c251 100644 (file)
 
        .byte           0x0                     /* Terminator .debug_abbrev
                                                   section.  */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index d0bdce9ef8be7d51b2640be3e434c58e75cf1a4b..e4d13a8cd047df765e015828162cea96048d9c5c 100644 (file)
@@ -74,4 +74,8 @@ dieb:
        .byte   0x0
 
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 973d5020342621e753c93bc6e887b945fed45d2a..d4fdb1d3077f2e00decc7a3aba1f15bdbf7f668e 100644 (file)
        .byte   0x0
        .byte   0x0
 
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 781b87e711555aa32132e8ca1c6acf436b21a61d..f44db05f26628cacf1adb68115627cb1dec76fa7 100644 (file)
@@ -31,4 +31,8 @@ main_end:
        .section        .debug_abbrev
 .Ldebug_abbrev0:
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index d78b7e87ff5e5c5b9d2512a87727ebc9dad8991b..5e08776ba39399fd0a15d4c82fcecc0697fb5da5 100644 (file)
@@ -106,4 +106,8 @@ var:        .4byte  1
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .type   some_func, %function
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index ea8dd092cb0589b4e3d0321a38195c165a3628da..e4678d866958398d99866ee3c0afc0bbcac921e2 100644 (file)
@@ -80,4 +80,8 @@ dieb:
        .byte   0x0
 
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 82d4549b8b5528e177f81220e278e2ff265e4edf..5fdfeecbb09c0b01130440f07dfe63b3849f6169 100644 (file)
@@ -102,4 +102,8 @@ loclist:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 1cdd94a12f547c9d08ca0d8e4f36c3b917985ac6..a1f0867aed527f59cc3f39f34a817e524b917bf9 100644 (file)
@@ -51,4 +51,8 @@
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index f954c4f7cc71690bd9ad6c74717884b70d9e5e63..67ba8a47d37537861b6d5f74f57482eaf9814430 100644 (file)
@@ -252,4 +252,8 @@ debug_info_seg3_end:
        .byte 0x08      /* DW_FORM_string. */
        .2byte 0x0000   /* End abbrev. */
        .byte 0x00      /* End abbrev table. */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 8856eb6e5d3c99a3dc0e8ee9d7d6b66cf8c96679..e432f629caec50c079d9bb72fce5485b4ec13403 100644 (file)
        .text
 
 .Ltext0:
+#ifdef __arm__
+       .type   p__top__middle__inside.3062, %function
+#else
        .type   p__top__middle__inside.3062, @function
+#endif
 p__top__middle__inside.3062:
 .LFB4:
        .file 1 "p.adb"
@@ -26,7 +30,11 @@ p__top__middle__inside.3062:
 .LBE6:
 
        .globl  p__top
+#ifdef __arm__
+       .type   p__top, %function
+#else
        .type   p__top, @function
+#endif
 p__top:
 .LFB2:
         .4byte 0
@@ -246,4 +254,8 @@ p__top:
 .Lline1_begin:
         .byte   0
 
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index f83762503ac8b5c5d2ee2d4e94bdb477f4b0b9d3..1585d8ac5764bec22353525ff71fbacba90b6600 100644 (file)
@@ -96,4 +96,8 @@
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 540bbb38342f85fc90abb11edc4a53a803ca30c0..c460dddb732be03729049b154f0c21ebdcf69819 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index a068ba116f991c10337943fe2d195223c744d1de..2cdc3049bc01d04f27697dc608c0ef35ccf59294 100644 (file)
@@ -314,4 +314,8 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index a9a474e2b7c7ddf569e41bdf9c9e847bbce235c7..010bdb224541c20519f2fc0437b995ffd1dab94b 100644 (file)
@@ -198,4 +198,8 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index aa3ec9d486c2facc065308d93c111d76e3dd5e1f..8a16022bd8f7927ec1e33584ea6049acd24b8f5a 100644 (file)
@@ -132,4 +132,8 @@ c:  .4byte  0
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 4169f7208371f6b2e867c559b19c49b4ea143e50..cbc1c87bb917e47e4630f004e8fbf80f78bc7616 100644 (file)
@@ -115,4 +115,8 @@ func2:
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 82236a7091ab1d234f4ae279ceda69a2d5889469..6289c36f01e5641444be518b28820dcd6e9e6f6c 100644 (file)
@@ -121,4 +121,8 @@ die221:
        .string "GNU Modula-2 0.78 (20100402) grafted onto GCC 4.1.2"
 .LASF2:
        .string ""
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 4b742437b56ed3d1a3cb2acd1b5db9b2f96f474d..d9e31d30ed97e9256b0db533e1d788fc3ee81bb2 100644 (file)
@@ -324,4 +324,8 @@ resolvable:
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 93abcf6e09a0d9e7ef65c4100e87d4e53a7724fc..57c58123fb8523e12914e7ad85cdf97e0d7d9d8f 100644 (file)
@@ -178,4 +178,8 @@ inner:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 6031ad26d934f7987deb04e7f801d58cf94dfbf5..99ff8c1151ea7eb1cf7358b446867538dd266eaa 100644 (file)
@@ -209,4 +209,8 @@ outer_after:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 2ae7bae9a4b9601dd0e2c34eacc845caf47aecbd..e5bba2cf0534313160c6eefda55437a84c503a35 100644 (file)
@@ -166,4 +166,8 @@ loclist:
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 003732618b255e202d22783532328966c42843b1..6983f0ed675edf37eae85facd74ce61daca01dd9 100644 (file)
@@ -130,4 +130,8 @@ aa551234:   .byte   0xaa, 0x55, 0x12, 0x34
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 3c7ca3c8ad37773dbdaf8cd20a2143034f8da80c..a8b8155b9667ea0ddf312fe5ae0cd0954d018bac 100644 (file)
@@ -106,4 +106,8 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index ca63697e90d1a99e8bd966d2bd159d6f4c4e1703..30338ebd652a2c491880341060209c5504049741 100644 (file)
@@ -198,4 +198,8 @@ func_cu1:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 1091dbc895efaa2947b4c2e043c723e6f914a134..3e3502a441b8c519ce848c1e9636537b940bf733 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index f199994bcdf1a35091f9ac175a94a2a7160c179c..5844ebe4f6d1f15e78f0325a785d3fd1bbc5240e 100644 (file)
@@ -167,4 +167,8 @@ d:
        .string "sizetype"
 .LASF1:
        .string "char"
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index d19ee72ebf3c69bce36fd05b017cc1ec37118422..c94147430c324cebfa5a5618d3ade39bdfda98c8 100644 (file)
@@ -397,4 +397,8 @@ loclist:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 8ea03b126ac1ae2f7f6b1d41b3b52eda31338db0..6d4a7be383450c01cedeced1707128da01057ae0 100644 (file)
@@ -66,4 +66,8 @@ debug_end:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index dd4eb4fe46a8ece0d87a76eaba9c6e3cfa986d3a..e0e27ce7548098cf827f16aab44b85ff9c2dfe76 100644 (file)
        .string         "hello world!\n"
 .Lemptyname:
        .string         ""
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index c52852d7463456a913732f814109c1bdb9d49b85..2a0a8de6793b9ffbb304405f6aa0f1dcbbea966e 100644 (file)
@@ -178,4 +178,8 @@ SYMBOL(var):        .byte   2
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index f2fb3c39a232284ff5c5e5aaf0502f4d073e1295..2abb4f7ee2514c84d046f5db49289759eba2d423 100644 (file)
@@ -90,4 +90,8 @@
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index d4b4bb64a3c2cf885b936d0260661704af860a89..4678c0fe0f282cea6d67c4a6596121c917fa3b60 100644 (file)
@@ -85,4 +85,8 @@ types_start:
        .byte   0x0
        .byte   0x0
        .byte   0x0
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index bdb20e76330007c6631ea359af4925156048bf58..6171453c4a5119234f37af688cc35cfa14a10b9e 100644 (file)
@@ -460,4 +460,8 @@ SYMBOL(main):
 .Ldebug_addr0:
        .4byte  .LFB0   /* DW_AT_low_pc */
        .4byte  SYMBOL(baz)     /* DW_AT_location */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 7e5971c50c92ef9a463c12408dec75c416fa05a9..a41b28513942f022f5d95e6cd7d5b9cd7d9b944d 100644 (file)
@@ -164,4 +164,8 @@ __start_high_pc:
 
 .global __cu_high_pc
 __cu_high_pc:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 7773040151517911d6c52639a6d2c4ae0434bfb4..71401bc81c7b46f7781725d90d89b51785bf3315 100644 (file)
@@ -209,4 +209,8 @@ 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 */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 5308abebee092011a868dc2f28ee057b9c3a7da2..b974f0e9c63dd9d57700c3685bbfa548b7fa7f88 100644 (file)
@@ -360,4 +360,8 @@ die149:     .uleb128 0x16           /* DW_TAG_variable */
 .LASF4:
        .string "GNU C++ 4.4.2"
        .ident  "GCC: (GNU) 4.4.2"
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index fc9d7afa838d558bc20bd47a02a204e120375191..4c1162591c364c98c4221cef2ea019cf8c2424b5 100644 (file)
@@ -378,4 +378,8 @@ SYMBOL(main):
 .LASF3:
        .string "main"
 
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index d5694c48d723bf075e7ea668e1284cc8db091cdc..2f95ee46ef30ee977cbeb6b292b7689442e8c704 100644 (file)
@@ -20,8 +20,8 @@ load_lib dwarf.exp
 
 standard_testfile .c
 set execfile $testfile
-set asm_file1 break-asm-file1.s
-set asm_file0 break-asm-file0.s
+set asm_file1 break-asm-file1.S
+set asm_file0 break-asm-file0.S
 
 # This test can only be run on targets which support DWARF-2 and use gas.
 require dwarf2_support
similarity index 96%
rename from gdb/testsuite/gdb.linespec/break-asm-file0.s
rename to gdb/testsuite/gdb.linespec/break-asm-file0.S
index 35a0060481eb3a8279b159e94596f6776148363e..36dc994c1b23e99b9a4d71c5b1a7616104b1aad1 100644 (file)
@@ -15,7 +15,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-       .file "a/break-asm-file0.s"
+       .file "a/break-asm-file0.S"
        .text
 .Lbegin_text1:
        .globl _func2
@@ -34,7 +34,7 @@ _func:
        .type func, %function
 func:
 .Lbegin_func:
-       .file 1 "a/break-asm-file0.s"
+       .file 1 "a/break-asm-file0.S"
        nop
 .Lfunc_1:
        nop
@@ -60,7 +60,7 @@ func:
        .4byte  .Lline1_begin                   /* DW_AT_stmt_list */
        .4byte  .Lend_text1                     /* DW_AT_high_pc */
        .4byte  .Lbegin_text1                   /* DW_AT_low_pc */
-       .ascii  "a/break-asm-file0.s\0"                 /* DW_AT_name */
+       .ascii  "a/break-asm-file0.S\0"                 /* DW_AT_name */
        .ascii  "GNU C 3.3.3\0"                 /* DW_AT_producer */
        .2byte  0x8001                          /* DW_AT_language (Mips Assembler) */
 
@@ -161,7 +161,7 @@ func:
        .byte           0
 
        /* File names */
-       .ascii          "a/break-asm-file0.s\0"
+       .ascii          "a/break-asm-file0.S\0"
        .uleb128        0
        .uleb128        0
        .uleb128        0
@@ -231,4 +231,8 @@ func:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
similarity index 97%
rename from gdb/testsuite/gdb.linespec/break-asm-file1.s
rename to gdb/testsuite/gdb.linespec/break-asm-file1.S
index c3fcc4191e04ed5516c2212810a16d0694f53700..c12545fa0f90beb1995264632812b7f56824fecd 100644 (file)
@@ -56,7 +56,7 @@ func:
        .4byte  .Lline1_begin                   /* DW_AT_stmt_list */
        .4byte  .Lend_text1                     /* DW_AT_high_pc */
        .4byte  .Lbegin_text1                   /* DW_AT_low_pc */
-       .ascii  "b/break-asm-file0.s\0"                 /* DW_AT_name */
+       .ascii  "b/break-asm-file0.S\0"                 /* DW_AT_name */
        .ascii  "GNU C 3.3.3\0"                 /* DW_AT_producer */
        .2byte  0x8001                          /* DW_AT_language (Mips Assembler) */
 
@@ -187,7 +187,7 @@ func:
        .byte           0
 
        /* File names */
-       .ascii          "b/break-asm-file0.s\0"
+       .ascii          "b/break-asm-file0.S\0"
        .uleb128        0
        .uleb128        0
        .uleb128        0
@@ -257,4 +257,8 @@ func:
        .byte           1
 
 .Lline1_end:
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index 684b9d93541126489e9afb258635ee4712777524..e37b04a4219ee4816ea43f5f19132262cb662743 100644 (file)
 
        .byte           0x0                     /* Terminator */
        .byte           0x0                     /* Terminator */
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif
index d577804e4bba8173a438b18bba8830149592f072..461e322628a1441a51ce7c8eb6e444ec96771a19 100644 (file)
@@ -20,4 +20,8 @@ _start:
        .rept 5
        nop
        .endr
+#ifdef __arm__
+       .section        .note.GNU-stack,"",%progbits
+#else
        .section        .note.GNU-stack,"",@progbits
+#endif