]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: ld: Move note sections after .rodata section
authorAlan Modra <amodra@gmail.com>
Tue, 12 Nov 2024 06:13:58 +0000 (16:43 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 12 Nov 2024 06:36:35 +0000 (17:06 +1030)
Fix csky-linux-gnu FAIL of ld-elf/pr32341, due to that target having
its own .bss directive.

PR ld/32341
* testsuite/ld-elf/pr32341.s: Don't use .bss directive.  Specify
progbits/nobits on all .section directives.

ld/testsuite/ld-elf/pr32341.s

index 11f31b7771a8a3b017dc6dd570c2c067ade21650..c601801a476d36067b1c42f99a613e2500f2b7c2 100644 (file)
@@ -15,11 +15,11 @@ main:
        .global _main
 _main:
        .dc.a 0
-       .section .rodata,"a"
+       .section .rodata,"a",%progbits
        .zero 8
-       .bss
+       .section .bss,"aw",%nobits
        .zero 8
-       .section        .note.ABI-tag,"a"
+       .section        .note.ABI-tag,"a",%progbits
        .align 4
        .zero 32
        .ident  "GCC: (GNU) 14.2.1"