From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: Modify ld-ctf test files to suit ARM
Date: Wed, 14 Sep 2022 10:19:31 +0930 [thread overview]
Message-ID: <YyElG1g7KqGLH5IO@squeak.grove.modra.org> (raw)
Found after I updated my arm-linux-gnueabi cross compiler. These
particular tests probably could be run even if compiler support for
ctf is missing, but I'll leave that to someone else to tidy.
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 --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
--
Alan Modra
Australia Development Lab, IBM
reply other threads:[~2022-09-14 0:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YyElG1g7KqGLH5IO@squeak.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).