Re: git: 4822a2cf9900 - main - Tentative fix for powerpc boot1.chrp linking problem.

From: Lexi Winter <ivy_at_freebsd.org>
Date: Sat, 25 Apr 2026 15:03:45 UTC
hello,

thanks for the LLVM update!

Dimitry Andric wrote in <69eccd95.36ae6.2c5a0592@gitrepo.freebsd.org>:
> diff --git a/stand/powerpc/boot1.chrp/Makefile b/stand/powerpc/boot1.chrp/Makefile
> index 0b77bce2b097..8d0f970212d4 100644
> --- a/stand/powerpc/boot1.chrp/Makefile
> +++ b/stand/powerpc/boot1.chrp/Makefile
> @@ -23,6 +23,12 @@ CFLAGS+=-I${LDRSRC}
>  #
>  LDFLAGS=-nostdlib -static -Wl,-N -Wl,-Ttext=0x38000 -Wl,--image-base=0x38000
                                                       ^^^^^^^^^^^^^^^^^^^^^^^^
>  
> +.include <bsd.linker.mk>
> +.if (${LINKER_TYPE} == "bfd" && ${LINKER_VERSION} >= 24400) || \
> +    ${LINKER_TYPE} == "lld"
> +LDFLAGS+=-Wl,--image-base=0
            ^^^^^^^^^^^^^^^^^^
> +.endif
> +

i already fixed this in a different way in aa0bc7cca153, which means
we now specify --image-base twice with different values.  one of them
should probably be removed, but i don't have any particular opinion on
which is better.