your SHF_GNU_RETAIN addition from over 4 years back
Jan Beulich
jbeulich@suse.com
Fri Jul 18 13:48:17 GMT 2025
(retrying with a different email address)
Josef,
I'm struggling with the elf/section23b testcase in combination with the
use (or not) of ELFOSABI_STANDALONE.
First: Why does obj_elf_parse_section_letters() check for that ABI, when
the checking at the bottom of obj_elf_section() and the logic in
_bfd_elf_final_write_processing() don't? Either STANDALONE is meant to
be GNU-ish, or it is not, I would think.
Second: Assuming it's not GNU-ish, what does the testcase actually mean
to check? The numeric attribute value 0x200000 has an entirely unknown
(or more precisely, OS-defined, which we may or may not know of)
meaning on non-GNU-ish targets, so ought to be accepted? Hence that
testcase simply seems wrong to me, and thus wants removing. (If it was
GNU-ish, the other testcase, elf/section23a, would want running for
those targets as well, and the testcase in question would still want
purging.)
Thanks in advance for any helpful insights,
Jan
More information about the Binutils
mailing list