[PATCH] ld: Clear SEC_ALLOC for NOLOAD notes sections
Alan Modra
amodra@gmail.com
Fri Mar 14 00:40:28 GMT 2025
On Thu, Mar 13, 2025 at 12:14:50PM -0700, H.J. Lu wrote:
> If a note section is marked as NOLOAD, clear the SEC_ALLOC so that it
> won't be treated as an SHF_ALLOC section, like a .bss section.
Perhaps we should instead make NOLOAD consistent over all targets?
That might not be possible, at least I thought so at the time I wrote
that "Unfortunately.." comment, but it is nasty that NOLOAD behaves
differently for ELF.
--
Alan Modra
More information about the Binutils
mailing list