[PATCH] ld: testsuite: Associate C identifiers with the corresponding assembler or linker symbols in a target-independent manner.

Alan Modra amodra@gmail.com
Sun Jul 19 05:31:15 GMT 2026


On Sat, Jul 18, 2026 at 09:52:54AM +0200, Jan Dubiec wrote:
> Some targets prepend an underscore to C symbol names, while others do
> not (e.g. H8 vs. ARM). This can cause problems in two situations, as
> shown in the log below:
>    1. when linking C and assembly code;
>    2. when a symbol name is specified on the linker's command line.
> 
> This patch resolves both issues by using the asm keyword to associate C
> identifiers with the corresponding assembler/linker symbol names in a
> target-independent manner.

Applied, thanks.

-- 
Alan Modra


More information about the Binutils mailing list