[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.
This commit is contained in:
Tom de Vries
2023-11-24 15:41:22 +01:00
parent 1571765654
commit a2ee3a8fff
59 changed files with 253 additions and 9 deletions
+1 -1
View File
@@ -33,4 +33,4 @@ main:
mov r0, #0
bx lr
.size main, .-main
.section .note.GNU-stack,"",@progbits
.section .note.GNU-stack,"",%progbits
+4
View 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
+4
View 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
@@ -149,4 +149,8 @@ LELTP:
.uleb128 0x1
.byte 0x1
LELT:
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -149,4 +149,8 @@ LELTP:
.uleb128 0x1
.byte 0x1
LELT:
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -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
+4
View File
@@ -375,4 +375,8 @@
.section .debug_line
.Ldebug_line0:
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -246,4 +246,8 @@ func_cu2:
.byte 1
.Lline1_end:
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -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
@@ -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
+4
View 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
@@ -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
@@ -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
@@ -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
@@ -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
+4
View 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
@@ -113,4 +113,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
+4
View File
@@ -107,4 +107,8 @@
.byte 0x0 /* Terminator .debug_abbrev
section. */
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
+4
View File
@@ -74,4 +74,8 @@ dieb:
.byte 0x0
.byte 0x0
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -617,4 +617,8 @@
.byte 0x0
.byte 0x0
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
+4
View 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
@@ -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
@@ -80,4 +80,8 @@ dieb:
.byte 0x0
.byte 0x0
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -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
+4
View 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
@@ -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
+12
View File
@@ -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
@@ -96,4 +96,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -150,4 +150,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
+4
View 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
+4
View 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
@@ -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
@@ -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
@@ -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
+4
View 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
@@ -178,4 +178,8 @@ inner:
.byte 1
.Lline1_end:
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -209,4 +209,8 @@ outer_after:
.byte 1
.Lline1_end:
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
+4
View 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
@@ -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
@@ -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
+4
View 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
@@ -149,4 +149,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -167,4 +167,8 @@ d:
.string "sizetype"
.LASF1:
.string "char"
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -397,4 +397,8 @@ loclist:
.byte 1
.Lline1_end:
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -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
+4
View File
@@ -176,4 +176,8 @@
.string "hello world!\n"
.Lemptyname:
.string ""
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -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
@@ -90,4 +90,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -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
@@ -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
@@ -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
+4
View 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
+4
View 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
+4
View File
@@ -378,4 +378,8 @@ SYMBOL(main):
.LASF3:
.string "main"
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -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
@@ -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
@@ -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
@@ -163,4 +163,8 @@
.byte 0x0 /* Terminator */
.byte 0x0 /* Terminator */
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif
@@ -20,4 +20,8 @@ _start:
.rept 5
nop
.endr
#ifdef __arm__
.section .note.GNU-stack,"",%progbits
#else
.section .note.GNU-stack,"",@progbits
#endif