gas .align limit
Jan Beulich
jbeulich@suse.com
Sun May 18 07:59:08 GMT 2025
On 17.05.2025 12:14, Alan Modra wrote:
> I've been looking at removing any requirement that rs_align_code
> frags need lots of memory. They should not, because the patterns of
> nops used always have repeating sequences, and the repeating part only
> needs memory for one repeat. The attached patch cleans up all the
> target HANDLE_ALIGN code, except for x86_64. I've left x86 because
> I'm unsure whether it matters that the short nop sequence is last. If
> it doesn't matter then it can be placed first, and the repeating part
> handled as for all other targets. If it should remain last then it
> needs to be moved to a separate frag as is done for the group ending
> nop on ppc.
I don't think the ordering really matters, but some testcases may have
been having respective expectations (which ought to be fine to change).
Iirc for long enough sequences we may emit JMP, though, and that
obviously needs to stay first.
Jan
More information about the Binutils
mailing list