[PATCH v1] GAS: Keep symbols in their own section [PR27566]

Alan Modra amodra@gmail.com
Wed Oct 23 08:12:26 GMT 2024


On Wed, Oct 23, 2024 at 03:04:27PM +0800, Xiao Zeng wrote:
> 2024-10-23 14:45  Xiao Zeng <zengxiao@eswincomputing.com> wrote:
[snip]
> The key assembly information is:
> 	.section	.rodata
> 	.align	3
> 	.set	.LANCHOR0,. + 0
> 	.set	.LANCHOR1,. + 4096
[snip]
> >This situation, where a symbol is in a section but the section's size is insufficient to contain the symbol, does exist.

Yes, and this is exactly the situation I was thinking of when I said
that it is quite reasonably to define a symbol outside of a section.
It would be completely wrong to extend .rodata to at least 4096 bytes
due to the .LANCHOR1 symbol.

-- 
Alan Modra


More information about the Binutils mailing list