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.
This commit is contained in:
Nick Clifton 2023-02-15 09:26:10 +00:00
parent ecbc5c4f90
commit 2b56cd9191
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2023-02-15 Nick Clifton <nickc@redhat.com>
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.
2023-02-14 Nick Clifton <nickc@redhat.com>
* ld.texi (Plugins): Mention that the -plugin command line option

View File

@ -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