mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
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:
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user