> Date: Fri, 26 Oct 2018 14:01:07 +0200
> From: Christian Weisgerber <[email protected]>
>
> Correct linker emulation name for lld when building i386 kernels
> on amd64.
ok kettenis@
>
> (Does anybody build i386 kernels on amd64? Apparently nobody has
> since the lld switch.)
Well, I did, and had the same diff in my tree ;).
> Index: sys/arch/i386/conf/Makefile.i386
> ===================================================================
> RCS file: /cvs/src/sys/arch/i386/conf/Makefile.i386,v
> retrieving revision 1.128
> diff -u -p -r1.128 Makefile.i386
> --- sys/arch/i386/conf/Makefile.i386 16 Oct 2018 16:39:18 -0000 1.128
> +++ sys/arch/i386/conf/Makefile.i386 25 Oct 2018 20:35:28 -0000
> @@ -52,7 +52,7 @@ LINKFLAGS= -T ld.script -X --warn-common
> .if ${MACHINE} == "amd64"
> CFLAGS+= -m32
> AFLAGS+= -m32
> -LDFLAGS= -melf_i386_obsd
> +LDFLAGS= -melf_i386
> LINKFLAGS+= ${LDFLAGS}
> .endif
>
> --
> Christian "naddy" Weisgerber [email protected]
>
>