[PATCH v1] GAS: Keep symbols in their own section [PR27566]
Xiao Zeng
zengxiao@eswincomputing.com
Wed Oct 23 08:42:00 GMT 2024
More information about the Binutils mailing list
Wed Oct 23 08:42:00 GMT 2024
- Previous message (by thread): [PATCH v1] GAS: Keep symbols in their own section [PR27566]
- Next message (by thread): [PATCH v1] GAS: Keep symbols in their own section [PR27566]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2024-10-23 16:42 Alan Modra <amodra@gmail.com> wrote: > >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. Hi, Alan, could you provide me with more information on 'symbols can be defined outside of section'? As a new GASer, I would appreciate any information. When performing relax optimization in RISC-V, symbols defined outside of sections can potentially cause LD to fail. This is why I submitted the patch. >It would be completely wrong to extend .rodata to at least 4096 bytes >due to the .LANCHOR1 symbol. > >-- >Alan Modra Thanks Xiao Zeng
- Previous message (by thread): [PATCH v1] GAS: Keep symbols in their own section [PR27566]
- Next message (by thread): [PATCH v1] GAS: Keep symbols in their own section [PR27566]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list