Fix the linker's merge4 test for the HPPA architecture.
authorNick Clifton <nickc@redhat.com>
Wed, 15 Feb 2023 09:26:10 +0000 (09:26 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 15 Feb 2023 09:26:10 +0000 (09:26 +0000)
 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.

ld/ChangeLog
ld/testsuite/ld-elf/merge4b.s

index 8204ab507ea600d084e7c5f90fc1c20b1c8d281e..ac2c913f3cdd198629e452c5a55e3aa63c4c8f60 100644 (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
index d4b66aab5e69d60e3ab9c2588660fd13a693ede1..03cfaaabceceb83c05e0284220ed040956ff75f7 100644 (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