[PATCH] h8300-elf: ld: Use USER_LABEL_PREFIX when generating linker scripts.

Jan Beulich jbeulich@suse.com
Fri Aug 21 09:18:09 GMT 2026


On 15.08.2026 09:33, Jan Dubiec wrote:
> --- a/ld/emulparams/h8300elf.sh
> +++ b/ld/emulparams/h8300elf.sh
> @@ -9,7 +9,9 @@ MAXPAGESIZE=2
>  TARGET_PAGE_SIZE=128
>  ARCH=h8300
>  TEMPLATE_NAME=elf
> +USER_LABEL_PREFIX=_
>  EMBEDDED=yes
> +ENTRY=_start
>  STACK_ADDR=0xfefc
>  TINY_READONLY_SECTION=".tinyrodata :
>    {

Aiui also setting ENTRY is to not alter the default entry point name. However,
with USER_LABEL_PREFIX being underscore, can the entry point sensibly have just
a single underscore?

Jan


More information about the Binutils mailing list