[PATCH v4 21/22] gas: disable code related to object attributes (OAs) on non-OA targets

Jan Beulich jbeulich@suse.com
Fri Jul 4 09:29:47 GMT 2025


On 03.07.2025 18:27, Matthieu Longo wrote:
> Gas, contrarilly to others binutils tools, is compiled for a specific
> target. Some targets don't support Object Attributes (OAs).
> For those cases, only the directives are disabled today, but not the
> code to handle the parsing, which constitutes dead code.
> 
> This patch aims at removing this code from Gas when the target does not
> support the OAs. It also pushes the disabling of code further to support
> the following configurations for OAs:
> - enable both OAv1 and OAv2 parsing. This is currently used by no
>   target, but is useful for migration from OAv1 to OAv2.
> - enable OAv1 parsing only. This is used by all targets supporting OAs
>   except for AArch64.
> - enable OAv2 parsing only. This is only used by AArch64.

Why is this a separate patch? Keeping the code properly conditional ought
to be done right as code is being added to what is currently named attr.[ch].

Jan


More information about the Binutils mailing list