[binutils-gdb] Modify ld-ctf test files to suit ARM
Alan Modra
amodra@sourceware.org
Wed Sep 14 00:50:46 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fdbca3611592ecfe6c421923562ed307ef75c8e0
commit fdbca3611592ecfe6c421923562ed307ef75c8e0
Author: Alan Modra <amodra@gmail.com>
Date: Wed Sep 14 08:00:07 2022 +0930
Modify ld-ctf test files to suit ARM
The "@" char starts a comment on ARM.
* testsuite/ld-ctf/diag-ctf-version-0.s: Replace @progbits with
%progbits.
* testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s: Likewise.
* testsuite/ld-ctf/diag-ctf-version-f.s: Likewise.
* testsuite/ld-ctf/diag-cttname-invalid.s: Likewise.
* testsuite/ld-ctf/diag-cttname-null.s: Likewise.
* testsuite/ld-ctf/diag-cuname.s: Likewise.
* testsuite/ld-ctf/diag-decompression-failure.s: Likewise.
* testsuite/ld-ctf/diag-parlabel.s: Likewise.
* testsuite/ld-ctf/diag-parname.s: Likewise.
* testsuite/ld-ctf/diag-strlen-invalid.s: Likewise.
* testsuite/ld-ctf/diag-unsupported-flag.s: Likewise.
* testsuite/ld-ctf/diag-wrong-magic-number.s: Likewise.
Diff:
---
ld/testsuite/ld-ctf/diag-ctf-version-0.s | 4 ++--
ld/testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s | 4 ++--
ld/testsuite/ld-ctf/diag-ctf-version-f.s | 4 ++--
ld/testsuite/ld-ctf/diag-cttname-invalid.s | 4 ++--
ld/testsuite/ld-ctf/diag-cttname-null.s | 4 ++--
ld/testsuite/ld-ctf/diag-cuname.s | 4 ++--
ld/testsuite/ld-ctf/diag-decompression-failure.s | 4 ++--
ld/testsuite/ld-ctf/diag-parlabel.s | 4 ++--
ld/testsuite/ld-ctf/diag-parname.s | 4 ++--
ld/testsuite/ld-ctf/diag-strlen-invalid.s | 4 ++--
ld/testsuite/ld-ctf/diag-unsupported-flag.s | 4 ++--
ld/testsuite/ld-ctf/diag-wrong-magic-number.s | 4 ++--
12 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/ld/testsuite/ld-ctf/diag-ctf-version-0.s b/ld/testsuite/ld-ctf/diag-ctf-version-0.s
index 5b1c33de1e3..03986c5f10c 100644
--- a/ld/testsuite/ld-ctf/diag-ctf-version-0.s
+++ b/ld/testsuite/ld-ctf/diag-ctf-version-0.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x0
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s b/ld/testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s
index 95e8d5187c1..79a7a7fad15 100644
--- a/ld/testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s
+++ b/ld/testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x2
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-ctf-version-f.s b/ld/testsuite/ld-ctf/diag-ctf-version-f.s
index 63b94ca9f6a..a7022e66bba 100644
--- a/ld/testsuite/ld-ctf/diag-ctf-version-f.s
+++ b/ld/testsuite/ld-ctf/diag-ctf-version-f.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0xf
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-cttname-invalid.s b/ld/testsuite/ld-ctf/diag-cttname-invalid.s
index f025254665d..960070ded6c 100644
--- a/ld/testsuite/ld-ctf/diag-cttname-invalid.s
+++ b/ld/testsuite/ld-ctf/diag-cttname-invalid.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-cttname-null.s b/ld/testsuite/ld-ctf/diag-cttname-null.s
index f3ba2129fef..d88b74ac00e 100644
--- a/ld/testsuite/ld-ctf/diag-cttname-null.s
+++ b/ld/testsuite/ld-ctf/diag-cttname-null.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-cuname.s b/ld/testsuite/ld-ctf/diag-cuname.s
index 95f3d72feea..49157dc4b4d 100644
--- a/ld/testsuite/ld-ctf/diag-cuname.s
+++ b/ld/testsuite/ld-ctf/diag-cuname.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-decompression-failure.s b/ld/testsuite/ld-ctf/diag-decompression-failure.s
index 40a2fcf66ce..5e539465b83 100644
--- a/ld/testsuite/ld-ctf/diag-decompression-failure.s
+++ b/ld/testsuite/ld-ctf/diag-decompression-failure.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-parlabel.s b/ld/testsuite/ld-ctf/diag-parlabel.s
index b31fb8181a3..507cb6b642e 100644
--- a/ld/testsuite/ld-ctf/diag-parlabel.s
+++ b/ld/testsuite/ld-ctf/diag-parlabel.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-parname.s b/ld/testsuite/ld-ctf/diag-parname.s
index d30178de39b..a6d7e186289 100644
--- a/ld/testsuite/ld-ctf/diag-parname.s
+++ b/ld/testsuite/ld-ctf/diag-parname.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-strlen-invalid.s b/ld/testsuite/ld-ctf/diag-strlen-invalid.s
index dbfdd21fe27..cd6a20d33e3 100644
--- a/ld/testsuite/ld-ctf/diag-strlen-invalid.s
+++ b/ld/testsuite/ld-ctf/diag-strlen-invalid.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-unsupported-flag.s b/ld/testsuite/ld-ctf/diag-unsupported-flag.s
index 9e773e91df3..d0a8e80392c 100644
--- a/ld/testsuite/ld-ctf/diag-unsupported-flag.s
+++ b/ld/testsuite/ld-ctf/diag-unsupported-flag.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff2
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
diff --git a/ld/testsuite/ld-ctf/diag-wrong-magic-number.s b/ld/testsuite/ld-ctf/diag-wrong-magic-number.s
index a80c8644b19..c073446e6c3 100644
--- a/ld/testsuite/ld-ctf/diag-wrong-magic-number.s
+++ b/ld/testsuite/ld-ctf/diag-wrong-magic-number.s
@@ -1,5 +1,5 @@
.file "A.c"
- .section .ctf,"",@progbits
+ .section .ctf,"",%progbits
.Lctf0:
.2byte 0xdff3
.byte 0x4
@@ -41,4 +41,4 @@
.text
.comm a,8,8
.ident "GCC: (GNU) 8.3.1 20191121 (Red Hat 8.3.1-5.0.1)"
- .section .note.GNU-stack,"",@progbits
+ .section .note.GNU-stack,"",%progbits
More information about the Binutils-cvs
mailing list