aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-11-24 15:41:22 +0100
committerTom de Vries <tdevries@suse.de>2023-11-24 15:41:22 +0100
commita2ee3a8fffceb52f0736a7ad84980907a0907d5a (patch)
tree7da30bea7cee3702ffc5d7deecdcda2030519b94 /gdb/testsuite
parent15717656549b6af941511dde20a51475c932645e (diff)
downloadgdb-a2ee3a8fffceb52f0736a7ad84980907a0907d5a.zip
gdb-a2ee3a8fffceb52f0736a7ad84980907a0907d5a.tar.gz
gdb-a2ee3a8fffceb52f0736a7ad84980907a0907d5a.tar.bz2
[gdb/testsuite] Use more %progbits for arm
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.arch/pr25124.S2
-rw-r--r--gdb/testsuite/gdb.base/dup-sect.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dup-psym.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S8
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-basic.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S8
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-compressed.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-const.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-cu-size.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-entry-value.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-filename.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-icycle.S12
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-inheritance.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-inline-param.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-intercu.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-intermix.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-noloc.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-op-call.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-param-error.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-producer.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-strp.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-unresolved.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/fission-reread.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/mac-fileno.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/pr11465.S4
-rw-r--r--gdb/testsuite/gdb.dwarf2/pr13961.S4
-rw-r--r--gdb/testsuite/gdb.linespec/break-asm-file.exp4
-rw-r--r--gdb/testsuite/gdb.linespec/break-asm-file0.S (renamed from gdb/testsuite/gdb.linespec/break-asm-file0.s)12
-rw-r--r--gdb/testsuite/gdb.linespec/break-asm-file1.S (renamed from gdb/testsuite/gdb.linespec/break-asm-file1.s)8
-rw-r--r--gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S4
-rw-r--r--gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S4
59 files changed, 253 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.arch/pr25124.S b/gdb/testsuite/gdb.arch/pr25124.S
index a7ed1a0..27b4e68 100644
--- a/gdb/testsuite/gdb.arch/pr25124.S
+++ b/gdb/testsuite/gdb.arch/pr25124.S
@@ -33,4 +33,4 @@ main:
mov r0, #0
bx lr
.size main, .-main
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/gdb/testsuite/gdb.base/dup-sect.S b/gdb/testsuite/gdb.base/dup-sect.S
index e374d57..c51bc91 100644
--- a/gdb/testsuite/gdb.base/dup-sect.S
+++ b/gdb/testsuite/gdb.base/dup-sect.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dup-psym.S b/gdb/testsuite/gdb.dwarf2/dup-psym.S
index ec180e6..4e50c0f 100644
--- a/gdb/testsuite/gdb.dwarf2/dup-psym.S
+++ b/gdb/testsuite/gdb.dwarf2/dup-psym.S
@@ -197,4 +197,8 @@ func_cu1:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
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 f0276ad..e1fccd1 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,4 +149,8 @@ LELTP:
.uleb128 0x1
.byte 0x1
LELT:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
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 59dd26c..2ff445e 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,4 +149,8 @@ LELTP:
.uleb128 0x1
.byte 0x1
LELT:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S b/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S
index 960a97c..d58c8bf 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S
index 2c62b61..dc6b866 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S
@@ -375,4 +375,8 @@
.section .debug_line
.Ldebug_line0:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S b/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S
index 8b88ba6..45cd7c4 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S
@@ -246,4 +246,8 @@ func_cu2:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S
index d90d4e2..192bfac 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S
@@ -15,7 +15,11 @@
.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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S b/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S
index d7654bb..10ea1ae 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-basic.S b/gdb/testsuite/gdb.dwarf2/dw2-basic.S
index 372ab23..7b37162 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-basic.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-basic.S
@@ -197,4 +197,8 @@ func_cu1:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S
index 39e462b..ffe29d1 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S
index 1059ace..84e6ee9 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S
@@ -60,7 +60,11 @@
/* 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
@@ -126,4 +130,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S b/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S
index 8a8ecfc..4d62681 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compressed.S b/gdb/testsuite/gdb.dwarf2/dw2-compressed.S
index 509fbea..14cf286 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-compressed.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-compressed.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-const.S b/gdb/testsuite/gdb.dwarf2/dw2-const.S
index dfc882a..ff81c18 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-const.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-const.S
@@ -249,4 +249,8 @@ func_cu1:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
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 070f24b..e217c73 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.S
@@ -113,4 +113,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S
index 99465e2..b6f8a21 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.S
@@ -107,4 +107,8 @@
.byte 0x0 /* Terminator .debug_abbrev
section. */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S
index d0bdce9..e4d13a8 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S
@@ -74,4 +74,8 @@ dieb:
.byte 0x0
.byte 0x0
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
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 973d502..d4fdb1d 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S
@@ -617,4 +617,8 @@
.byte 0x0
.byte 0x0
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S b/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S
index 781b87e..f44db05 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S
index d78b7e8..5e08776 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S
index ea8dd09..e4678d8 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S
@@ -80,4 +80,8 @@ dieb:
.byte 0x0
.byte 0x0
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S b/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S
index 82d4549..5fdfeec 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-value.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-filename.S b/gdb/testsuite/gdb.dwarf2/dw2-filename.S
index 1cdd94a..a1f0867 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-filename.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-filename.S
@@ -51,4 +51,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S b/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S
index f954c4f..67ba8a4 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
index 8856eb6..e432f62 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
@@ -18,7 +18,11 @@
.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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S
index f837625..1585d8a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.S
@@ -96,4 +96,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S
index 540bbb3..c460ddd 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.S
@@ -150,4 +150,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-intercu.S b/gdb/testsuite/gdb.dwarf2/dw2-intercu.S
index a068ba1..2cdc304 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-intercu.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-intercu.S
@@ -314,4 +314,8 @@ func_cu1:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-intermix.S b/gdb/testsuite/gdb.dwarf2/dw2-intermix.S
index a9a474e..010bdb2 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-intermix.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-intermix.S
@@ -198,4 +198,8 @@ func_cu1:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S
index aa3ec9d..8a16022 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S
index 4169f72..cbc1c87 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S b/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S
index 82236a7..6289c36 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-noloc.S b/gdb/testsuite/gdb.dwarf2/dw2-noloc.S
index 4b74243..d9e31d3 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-noloc.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-noloc.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S
index 93abcf6..57c5812 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S
@@ -178,4 +178,8 @@ inner:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S
index 6031ad2..99ff8c1 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S
@@ -209,4 +209,8 @@ outer_after:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-call.S b/gdb/testsuite/gdb.dwarf2/dw2-op-call.S
index 2ae7bae..e5bba2c 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-op-call.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-op-call.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S
index 0037326..6983f0e 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-param-error.S b/gdb/testsuite/gdb.dwarf2/dw2-param-error.S
index 3c7ca3c..a8b8155 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-param-error.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-param-error.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-producer.S b/gdb/testsuite/gdb.dwarf2/dw2-producer.S
index ca63697..30338eb 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-producer.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-producer.S
@@ -198,4 +198,8 @@ func_cu1:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S
index 1091dbc..3e3502a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S
@@ -149,4 +149,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S
index f199994..5844ebe 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S
@@ -167,4 +167,8 @@ d:
.string "sizetype"
.LASF1:
.string "char"
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S b/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S
index d19ee72..c941474 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S
@@ -397,4 +397,8 @@ loclist:
.byte 1
.Lline1_end:
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S
index 8ea03b1..6d4a7be 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-strp.S b/gdb/testsuite/gdb.dwarf2/dw2-strp.S
index dd4eb4f..e0e27ce 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-strp.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-strp.S
@@ -176,4 +176,8 @@
.string "hello world!\n"
.Lemptyname:
.string ""
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S b/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S
index c52852d..2a0a8de 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-unresolved.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S b/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S
index f2fb3c3..2abb4f7 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S
+++ b/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S
@@ -90,4 +90,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S b/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S
index d4b4bb6..4678c0f 100644
--- a/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S
+++ b/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.S b/gdb/testsuite/gdb.dwarf2/fission-reread.S
index bdb20e7..6171453 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-reread.S
+++ b/gdb/testsuite/gdb.dwarf2/fission-reread.S
@@ -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
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 7e5971c..a41b285 100644
--- a/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S
+++ b/gdb/testsuite/gdb.dwarf2/frame-inlined-in-outer-frame.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/mac-fileno.S b/gdb/testsuite/gdb.dwarf2/mac-fileno.S
index 7773040..71401bc 100644
--- a/gdb/testsuite/gdb.dwarf2/mac-fileno.S
+++ b/gdb/testsuite/gdb.dwarf2/mac-fileno.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/pr11465.S b/gdb/testsuite/gdb.dwarf2/pr11465.S
index 5308abe..b974f0e 100644
--- a/gdb/testsuite/gdb.dwarf2/pr11465.S
+++ b/gdb/testsuite/gdb.dwarf2/pr11465.S
@@ -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
diff --git a/gdb/testsuite/gdb.dwarf2/pr13961.S b/gdb/testsuite/gdb.dwarf2/pr13961.S
index fc9d7af..4c11625 100644
--- a/gdb/testsuite/gdb.dwarf2/pr13961.S
+++ b/gdb/testsuite/gdb.dwarf2/pr13961.S
@@ -378,4 +378,8 @@ SYMBOL(main):
.LASF3:
.string "main"
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
diff --git a/gdb/testsuite/gdb.linespec/break-asm-file.exp b/gdb/testsuite/gdb.linespec/break-asm-file.exp
index d5694c4..2f95ee4 100644
--- a/gdb/testsuite/gdb.linespec/break-asm-file.exp
+++ b/gdb/testsuite/gdb.linespec/break-asm-file.exp
@@ -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
diff --git a/gdb/testsuite/gdb.linespec/break-asm-file0.s b/gdb/testsuite/gdb.linespec/break-asm-file0.S
index 35a0060..36dc994 100644
--- a/gdb/testsuite/gdb.linespec/break-asm-file0.s
+++ b/gdb/testsuite/gdb.linespec/break-asm-file0.S
@@ -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
diff --git a/gdb/testsuite/gdb.linespec/break-asm-file1.s b/gdb/testsuite/gdb.linespec/break-asm-file1.S
index c3fcc41..c12545f 100644
--- a/gdb/testsuite/gdb.linespec/break-asm-file1.s
+++ b/gdb/testsuite/gdb.linespec/break-asm-file1.S
@@ -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
diff --git a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
index 684b9d9..e37b04a 100644
--- a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
+++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S
@@ -163,4 +163,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif
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 d577804..461e322 100644
--- a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S
+++ b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S
@@ -20,4 +20,8 @@ _start:
.rept 5
nop
.endr
+#ifdef __arm__
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
+#endif