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

Alan Modra amodra@gmail.com
Mon Aug 24 00:52:46 GMT 2026


On Sun, Aug 23, 2026 at 10:10:24PM +0200, Jan Dubiec wrote:
> This version does not explicitly set the entry symbol; the default one
> is used instead.
> 
> The patch also changes one file in the H8/300 simulator testsuite, as it
> is affected by the change to the entry symbol. The patch has therefore
> also been posted to the gdb-patches mailing list for approval.
> 
> The corresponding newlib patch has already been posted: https://inbox.sourceware.org/newlib/20260822001114.1564261-1-jdx@o2.pl/T/#u.
> 
> Signed-off-by: Jan Dubiec <jdx@o2.pl>
> ---
>  ld/emulparams/h8300elf.sh         | 1 +
>  ld/testsuite/ld-h8300/gcsection.d | 2 +-
>  ld/testsuite/ld-h8300/gcsection.s | 5 +++--
>  ld/testsuite/ld-h8300/relax-2.d   | 2 +-
>  ld/testsuite/ld-h8300/relax-2.s   | 3 ++-
>  ld/testsuite/ld-h8300/relax-3.d   | 2 +-
>  ld/testsuite/ld-h8300/relax-3.s   | 3 ++-
>  ld/testsuite/ld-h8300/relax-4.d   | 2 +-
>  ld/testsuite/ld-h8300/relax-4.s   | 3 ++-
>  ld/testsuite/ld-h8300/relax-5.d   | 2 +-
>  ld/testsuite/ld-h8300/relax-5.s   | 3 ++-
>  ld/testsuite/ld-h8300/relax-6.d   | 2 +-
>  ld/testsuite/ld-h8300/relax-6.s   | 3 ++-
>  ld/testsuite/ld-h8300/relax-7.d   | 2 +-
>  ld/testsuite/ld-h8300/relax-7a.s  | 3 ++-
>  ld/testsuite/ld-h8300/relax.d     | 2 +-
>  ld/testsuite/ld-h8300/relax.s     | 3 ++-
>  sim/testsuite/h8300/testutils.inc | 3 ++-
>  18 files changed, 28 insertions(+), 18 deletions(-)

OK.

-- 
Alan Modra


More information about the Binutils mailing list