[PATCH] ld: replace another @progbits etc in an ELF testcase

Hans-Peter Nilsson hp@bitrange.com
Tue Jan 21 05:13:23 GMT 2025


On Mon, 20 Jan 2025, Jan Beulich wrote:

> On 18.01.2025 04:39, Maciej W. Rozycki wrote:
> > On Fri, 17 Jan 2025, Jan Beulich wrote:
> > 
> >> The canonical form is %progbits and alike.
> > 
> >  Not according to the GAS manual; @progbits, etc. has always been the 
> > canonical form (with an alternative form used for problematic targets).
> 
> "Canonical" as in "for uses in the testsuite", which is largely orthogonal
> to what the doc says here.
> 
> That said, really I think using the % form also isn't ideal (yet if we
> were to switch, we should do so everywhere rather than introducing an odd
> special case here). MMIX uses % as a comment char; the uses in the
> testsuite merely cause no problem there because is_elf_format() doesn't
> evaluate to true for MMIX (which arguably might also be wrong).

1/2 yes: the (relocatable) object format is ELF, but the default 
linked (no-relocatable) format format is mmo.  To wit, to 
"correct" it is_elf_format, it would have to differentiate 
between ".o" and ".exe" (for default options).

brgds, H-P


More information about the Binutils mailing list