[PATCH] Arm: .noinit and .persistent are not supported for Linux targets
Jan Beulich
jbeulich@suse.com
Fri Nov 25 10:09:58 GMT 2022
Respective tests being run means guaranteed failures.
---
fuchsia, haiku, nacl and phoenix look to be similarly affected, but
knowing nothing about those targets I don't think I should touch them.
Plus of course there's the obvious alternative of the respective
ld/emulparams/armelf_*.sh simply being wrong in not enabling one or both
of the features.
See also https://sourceware.org/pipermail/binutils/2021-February/115300.html
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -401,7 +401,7 @@ proc supports_noinit_section {} {
#
# arc-*-* is not included here, since it only supports .noinit with the
# non-default arcv2elf emulation.
- if {[istarget "arm-*-*"]
+ if { ([istarget "arm-*-*"] && ![istarget "arm*-linux-*"])
|| [istarget "avr-*-*"]
|| [istarget "msp430-*-*"]
|| [istarget "pru-*-*"] } {
@@ -420,7 +420,7 @@ proc supports_persistent_section {} {
# Targets that set HAVE_PERSISTENT=yes in their emulparams script utilizing
# elf.sc, or explicitly define a .persistent section in their linker script.
- if { [istarget "arm-*-*"]
+ if { ([istarget "arm-*-*"] && ![istarget "arm*-linux-*"])
|| [istarget "msp430-*-*"] } {
return 1;
}
More information about the Binutils
mailing list