[PATCH 2/2] z80-elf: support complex relocation symbols
Jan Beulich
jbeulich@suse.com
Fri Oct 17 12:22:16 GMT 2025
On 13.10.2025 22:25, H. Peter Anvin wrote:
> Some Z80 code, like the z88dk libc, does rely on being able to do
> computation between external symbols.
>
> Enable complex relocation support (expression symbols) on Z80.
>
> [ Is there any fundamental reason not to do this globally? ]
Both for Z80 and for the more general question: Is the rest of the toolchain
capable of dealing with that without any adjustments? Are other tools on the
target (non-GNU linkers etc) capable of (correctly) consuming such objects?
Furthermore, looking at just symbol_relc_make_sym(), I can't help the
impression that the symbol names produced there could conflict with (quoted)
ordinary symbols. Such potential conflicts would be a reason to be careful
with enabling of this functionality.
In any event such enabling would imo not only want but need to come with at
least one testcase.
Jan
More information about the Binutils
mailing list