summaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2023-02-15 09:26:10 +0000
committerNick Clifton <nickc@redhat.com>2023-02-15 09:26:10 +0000
commit2b56cd91911c7b813b7fe9f92fb86af404356001 (patch)
tree47c9fc3960a650dceaa9545757ade19029ccf214 /ld/testsuite
parentecbc5c4f9059dd483cf8b0705cbd4e2e9606aad5 (diff)
Fix the linker's merge4 test for the HPPA architecture.
PR 30078 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in order to avoid the special behaviour of the .string directive on HPPA architectures.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-elf/merge4b.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/ld/testsuite/ld-elf/merge4b.s b/ld/testsuite/ld-elf/merge4b.s
index d4b66aab5e6..03cfaaabcec 100644
--- a/ld/testsuite/ld-elf/merge4b.s
+++ b/ld/testsuite/ld-elf/merge4b.s
@@ -1,11 +1,11 @@
/* Check that pointing into padding zeros of string sections works. */
.section .rodata.str1.1,"aMS",@progbits,1
- .string ""
+ .asciz ""
.LC0:
- .string "foobar"
+ .asciz "foobar"
1:
- .string ""
- .string "whatever"
+ .asciz ""
+ .asciz "whatever"
.section .data
.globl addr_of_str
.type addr_of_str, @object
@@ -19,5 +19,5 @@ addr_of_str2:
.type str, @object
.size str, 7
str:
- .string "foobar"
+ .asciz "foobar"
.section .note.GNU-stack,"",@progbits