This is the mail archive of the
mailing list for the binutils project.
Re: RFA: gas-arm: maintain literal pools on a per section/per-subsection basis
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com, brett dot w dot gaines at intel dot com, rearnshaw at arm dot com, Philip dot Blundell at pobox dot com
- Date: Fri, 26 Jul 2002 16:46:22 +0100
- Subject: Re: RFA: gas-arm: maintain literal pools on a per section/per-subsection basis
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> What might be controversial about this patch however, and the reason
> why I am asking for comments first, is that it also changes the
> default behavior of the assembler so that the literal pool is no
> longer automatically dumped upon section change, but instead only
> when a .ltorg directive is encountered, or at the end of input.
> This makes more sense, since it allows the programmer complete
> control over where the literal pools will be placed.
I guess the implication of this is that
ldr x, =0x511
will now fail to assemble, when it did before. However, I would suggest
that the above code sequence is buggy, so I'm not particularly worried
GCC doesn't use the automatic literal pool generation, so this is no great
shakes from the compiler point of view.
I've no objections to this change.
Do we really need an option to support the old model? Did the
documentation ever imply that literal sections would be dumped
automatically at each section change?