RFC: Risc-V: Allow assembler to adjust relocs against symbols in mergeable sections
Nick Clifton
nickc@redhat.com
Thu Jan 15 11:17:51 GMT 2026
Hi Guys,
Attached is a small patch which allows the Risc-V assembler to adjust
fixups against symbols in mergeable sections. Doing this results in
relocations against the section's symbol instead of local symbols.
In theory this would workaround the problem reported in PR 33723 and
PR 33789, although I have not actually checked this. In addition I do
not know if the change would break something important for Risc-V.
(Although the change does not introduce any new testsuite failures,
but I am testing in a cross-compilation environment so native tests
were not run).
The patch does also help to reduce the size of the symbol table in
object files as some local symbols can now be dropped.
I am not going to apply the patch - I will leave that up to you to
decide if it is suitable. But I just thought that it might help...
Cheers
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: riscv-gas-adjust-merge-section-symbols.patch
Type: text/x-patch
Size: 1128 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260115/d96cbb6d/attachment.bin>
More information about the Binutils
mailing list