public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Luis Machado <luis.machado@arm.com>
To: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/testsuite] Use more %progbits for arm
Date: Fri, 24 Nov 2023 14:29:00 +0000	[thread overview]
Message-ID: <01469fce-6ab7-4783-8920-aa04f0de7f25@arm.com> (raw)
In-Reply-To: <20231124135736.18019-1-tdevries@suse.de>

On 11/24/23 13:57, Tom de Vries wrote:
> 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.
> 
> Tested on x86_64-linux and pinebook.
> ---
>  gdb/testsuite/gdb.arch/pr25124.S                   |  2 +-
>  gdb/testsuite/gdb.base/dup-sect.S                  |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dup-psym.S                |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.S        |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.S           |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.S      |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-bad-elf-other.S       |  8 ++++++++
>  gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.S  |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-basic.S               |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S   |  4 ++++
>  .../gdb.dwarf2/dw2-case-insensitive-debug.S        |  8 ++++++++
>  gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.S      |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-compressed.S          |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-const.S               |  4 ++++
>  .../gdb.dwarf2/dw2-cp-infcall-ref-static.S         |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-cu-size.S             |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-dos-drive.S           |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.S            |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.S     |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S      |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-entry-value.S         |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-filename.S            |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-icc-opaque.S          |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-icycle.S              | 14 +++++++++++++-
>  gdb/testsuite/gdb.dwarf2/dw2-inheritance.S         |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-inline-param.S        |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-intercu.S             |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-intermix.S            |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.S  |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.S        |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S   |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-noloc.S               |  4 ++++
>  .../gdb.dwarf2/dw2-objfile-overlap-inner.S         |  4 ++++
>  .../gdb.dwarf2/dw2-objfile-overlap-outer.S         |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-op-call.S             |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S      |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-param-error.S         |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-producer.S            |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.S   |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S      |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.S       |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.S      |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-strp.S                |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-unresolved.S          |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.S       |  4 ++++
>  gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S     |  4 ++++
>  gdb/testsuite/gdb.dwarf2/fission-reread.S          |  4 ++++
>  .../gdb.dwarf2/frame-inlined-in-outer-frame.S      |  4 ++++
>  gdb/testsuite/gdb.dwarf2/mac-fileno.S              |  4 ++++
>  gdb/testsuite/gdb.dwarf2/pr11465.S                 |  4 ++++
>  gdb/testsuite/gdb.dwarf2/pr13961.S                 |  4 ++++
>  gdb/testsuite/gdb.linespec/break-asm-file.exp      |  4 ++--
>  .../{break-asm-file0.s => break-asm-file0.S}       | 12 ++++++++----
>  .../{break-asm-file1.s => break-asm-file1.S}       |  8 ++++++--
>  gdb/testsuite/gdb.mi/dw2-ref-missing-frame.S       |  4 ++++
>  gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.S  |  4 ++++
>  59 files changed, 254 insertions(+), 10 deletions(-)
>  rename gdb/testsuite/gdb.linespec/{break-asm-file0.s => break-asm-file0.S} (96%)
>  rename gdb/testsuite/gdb.linespec/{break-asm-file1.s => break-asm-file1.S} (97%)
> 
> diff --git a/gdb/testsuite/gdb.arch/pr25124.S b/gdb/testsuite/gdb.arch/pr25124.S
> index a7ed1a02472..27b4e683488 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 e374d578dc0..c51bc91d6d8 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 ec180e65080..4e50c0fe885 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 f0276adf3be..e1fccd1979f 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 59dd26c3c85..2ff445e36a4 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 960a97c39a8..d58c8bfedf8 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 2c62b613c57..dc6b86648bd 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 8b88ba6d1ef..45cd7c42fb8 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 d90d4e2b4ac..192bfac844f 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 d7654bb1c14..10ea1ae24cb 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 372ab23cb3b..7b37162b037 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 39e462b7149..ffe29d17a3a 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 1059ace3b3e..84e6ee9a485 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 8a8ecfc397b..4d626817f1a 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 509fbea4a3b..14cf286f393 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 dfc882ac530..ff81c18732d 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 070f24b407d..e217c736dd8 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 99465e2c015..b6f8a2117b3 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 d0bdce9ef8b..e4d13a8cd04 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 973d5020342..d4fdb1d3077 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 781b87e7115..f44db05f266 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 d78b7e87ff5..5e08776ba39 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 ea8dd092cb0..e4678d86695 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 82d4549b8b5..5fdfeecbb09 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 1cdd94a12f5..a1f0867aed5 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 f954c4f7cc7..67ba8a47d37 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 8856eb6e5d3..b26c6433ece 100644
> --- a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
> +++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S
> @@ -18,15 +18,23 @@
>  	.text
>  
>  .Ltext0:
> +#ifdef __arm__
> +	.type	p__top__middle__inside.3062, %function
> +#else
>  	.type	p__top__middle__inside.3062, @function
> -p__top__middle__inside.3062:
> +#endif
> +	p__top__middle__inside.3062:
>  .LFB4:
>  	.file 1 "p.adb"
>          .4byte 0
>  .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 f83762503ac..1585d8ac576 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 540bbb38342..c460dddb732 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 a068ba116f9..2cdc3049bc0 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 a9a474e2b7c..010bdb22454 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 aa3ec9d486c..8a16022bd8f 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 4169f720837..cbc1c87bb91 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 82236a7091a..6289c36f01e 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 4b742437b56..d9e31d30ed9 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 93abcf6e09a..57c58123fb8 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 6031ad26d93..99ff8c1151e 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 2ae7bae9a4b..e5bba2cf053 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 003732618b2..6983f0ed675 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 3c7ca3c8ad3..a8b8155b966 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 ca63697e90d..30338ebd652 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 1091dbc895e..3e3502a441b 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 f199994bcdf..5844ebe4f6d 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 d19ee72ebf3..c94147430c3 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 8ea03b126ac..6d4a7be3834 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 dd4eb4fe46a..e0e27ce7548 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 c52852d7463..2a0a8de6793 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 f2fb3c39a23..2abb4f7ee25 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 d4b4bb64a3c..4678c0fe0f2 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 bdb20e76330..6171453c4a5 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 7e5971c50c9..a41b2851394 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 77730401515..71401bc81c7 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 5308abebee0..b974f0e9c63 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 fc9d7afa838..4c1162591c3 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 d5694c48d72..2f95ee46ef3 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
> similarity index 96%
> rename from gdb/testsuite/gdb.linespec/break-asm-file0.s
> rename to gdb/testsuite/gdb.linespec/break-asm-file0.S
> index 35a0060481e..36dc994c1b2 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
> similarity index 97%
> rename from gdb/testsuite/gdb.linespec/break-asm-file1.s
> rename to gdb/testsuite/gdb.linespec/break-asm-file1.S
> index c3fcc4191e0..c12545fa0f9 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 684b9d93541..e37b04a4219 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 d577804e4bb..461e322628a 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
> 
> base-commit: 2ec31e54dff83130fbde8d2f674469078ee203d5


Thanks for addressing this Tom. This is OK.

Approved-by: Luis Machado <luis.machado@arm.com>

      reply	other threads:[~2023-11-24 14:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-24 13:57 Tom de Vries
2023-11-24 14:29 ` Luis Machado [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=01469fce-6ab7-4783-8920-aa04f0de7f25@arm.com \
    --to=luis.machado@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tdevries@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).