[PATCH v2] h8300-elf: ld: Use USER_LABEL_PREFIX when generating linker scripts
Jan Dubiec
jdx@o2.pl
Sat Aug 22 10:25:33 GMT 2026
On 22.08.2026 11:31, Alan Modra wrote:
[...]
> The testsuite changes cause regressions on h8300-linux-gnu where
> USER_LABEL_PREFIX is empty.
>
> h8300-linux-gnu +FAIL: H8300 Relaxation Test
> h8300-linux-gnu +FAIL: H8300 Relaxation Test 2
> h8300-linux-gnu +FAIL: H8300 Relaxation Test 3
> h8300-linux-gnu +FAIL: H8300 Relaxation Test 4
> h8300-linux-gnu +FAIL: H8300 Relaxation Test 5
> h8300-linux-gnu +FAIL: H8300 Relaxation Test 6
> h8300-linux-gnu +FAIL: H8300 Relaxation Test 7
> h8300-linux-gnu +FAIL: H8300 GCC section test case
>
> warning: cannot find entry symbol _start; ...
>
Argh, I forgot about Linux again...
Do you have any idea how to fix it? The following code will work on bare
metal and should also work on Linux, but it looks rather ugly:
.global _start, __start
_start:
__start:
/J.D.
More information about the Binutils
mailing list