aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-01-13 12:15:45 +1030
committerAlan Modra <amodra@gmail.com>2022-01-13 14:12:43 +1030
commitdd68e156fdeee13046b31b002abcee018269e4c2 (patch)
treed01870a5306a3dbbbc0939954ca87f3ab04cb379 /ld
parent9c3d7d9b7ed5f442fea1ddcb41fc1e0488f51588 (diff)
downloadgdb-dd68e156fdeee13046b31b002abcee018269e4c2.zip
gdb-dd68e156fdeee13046b31b002abcee018269e4c2.tar.gz
gdb-dd68e156fdeee13046b31b002abcee018269e4c2.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-elf/dt-relr-1.s2
-rw-r--r--ld/testsuite/ld-elf/dt-relr-2.s2
-rw-r--r--ld/testsuite/ld-elf/dt-relr-3.s2
3 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-elf/dt-relr-1.s b/ld/testsuite/ld-elf/dt-relr-1.s
index 1eb3458..ce1a876 100644
--- a/ld/testsuite/ld-elf/dt-relr-1.s
+++ b/ld/testsuite/ld-elf/dt-relr-1.s
@@ -9,5 +9,5 @@ _start:
.globl data
data:
.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
diff --git a/ld/testsuite/ld-elf/dt-relr-2.s b/ld/testsuite/ld-elf/dt-relr-2.s
index bd1f3df..1fcee6c 100644
--- a/ld/testsuite/ld-elf/dt-relr-2.s
+++ b/ld/testsuite/ld-elf/dt-relr-2.s
@@ -16,5 +16,5 @@ data:
.dc.a __ehdr_start + 9
.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
diff --git a/ld/testsuite/ld-elf/dt-relr-3.s b/ld/testsuite/ld-elf/dt-relr-3.s
index d020132..41ea08e 100644
--- a/ld/testsuite/ld-elf/dt-relr-3.s
+++ b/ld/testsuite/ld-elf/dt-relr-3.s
@@ -4,7 +4,7 @@
_start:
.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
.p2align 0
.globl data