[PATCH] ld: Move note sections after .rodata section
Alan Modra
amodra@gmail.com
Tue Nov 12 06:39:01 GMT 2024
On Mon, Nov 11, 2024 at 07:44:08PM +0800, H.J. Lu wrote:
> This is what I am checking in.
The new test fails on arm-nacl and csky-linux. I'll commit the
following to fix the csky-linux fail, which is 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.
diff --git a/ld/testsuite/ld-elf/pr32341.s b/ld/testsuite/ld-elf/pr32341.s
index 11f31b7771a..c601801a476 100644
--- a/ld/testsuite/ld-elf/pr32341.s
+++ b/ld/testsuite/ld-elf/pr32341.s
@@ -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"
--
Alan Modra
More information about the Binutils
mailing list