Don't use C++ comments in assembly

It might seem to work, but only if '/' is a start of comment char.

	* testsuite/ld-elf/dt-relr-1.s: Use # for comment.
	* testsuite/ld-elf/dt-relr-2.s: Likewise.
	* testsuite/ld-elf/dt-relr-3.s: Likewise.
This commit is contained in:
Alan Modra
2022-01-13 12:15:45 +10:30
parent 9c3d7d9b7e
commit dd68e156fd
3 changed files with 3 additions and 3 deletions

View File

@ -9,5 +9,5 @@ _start:
.globl data .globl data
data: data:
.byte 0 .byte 0
// Offset is not a multiple of 2. Don't use DT_RELR. # Offset is not a multiple of 2. Don't use DT_RELR.
.dc.a __ehdr_start + 10 .dc.a __ehdr_start + 10

View File

@ -16,5 +16,5 @@ data:
.dc.a __ehdr_start + 9 .dc.a __ehdr_start + 9
.byte 0 .byte 0
// Offset is not a multiple of 2. Don't use DT_RELR. # Offset is not a multiple of 2. Don't use DT_RELR.
.dc.a __ehdr_start + 10 .dc.a __ehdr_start + 10

View File

@ -4,7 +4,7 @@
_start: _start:
.byte 0 .byte 0
// Section alignment is not a multiple of 2. Don't use DT_RELR. # Section alignment is not a multiple of 2. Don't use DT_RELR.
.data .data
.p2align 0 .p2align 0
.globl data .globl data