[PATCH] ARM: Support .noinit and .persistent sections in ELF linker script
Nick Clifton
nickc@redhat.com
Tue Nov 24 17:24:26 GMT 2020
Hi Jozef,
> Support for the "persistent" attribute, to place variables in the
> ".persistent" section, has been added to GCC and needs to be handled in
> the default ARM ELF linker script.
>
> The ".persistent" section is for data that is initialized during load,
> but not during application reset.>
> Unique .noinit.* and .gnu.linkonce.n.* sections were unhandled within
> the .noinit output section, this patch also fixes that.
>
> Successfuly regtested the LD testsuite for arm-none-eabi, ok to apply?
Are these sections ARM specific ? I ask because the names (.noinit,
.persistent, .gnu.linkonce.n) look to be generic, and if the intention
is that they can be used on other architectures, then maybe the correct
place to add these is the ld/scripttempl/elf.sc script ...
If they are ARM specific, then maybe the names should be changed to, eg,
.ARM.persistent, etc.
Cheers
Nick
More information about the Binutils
mailing list