CVSROOT:        /cvs
Module name:    src
Changes by:     gkoeh...@cvs.openbsd.org        2020/11/29 11:57:29

Modified files:
        gnu/llvm/lld/ELF/Arch: PPC.cpp 
        sys/arch/macppc/conf: Makefile.macppc 

Log message:
Teach lld to link the macppc kernel

Add R_PPC_ADDR24 to lld.  We need R_PPC_ADDR24 for absolute branches
"ba" and "bla" in locore.S in the kernel.

In Makefile.macppc, add a gapdummy (like in Makefile.powerpc64) to
avoid an lld error.  Also adapt a part of Makefile.i386, so my
powerpc64 can use clang and lld to build and link the macppc kernel.
(I didn't boot that kernel.)

My macppc can now build, link, and boot kernels with either ld.bfd or
ld.lld.  Beware that kernels linked with ld.lld have at least one
problem (wrong &etext) not yet fixed.

ok kettenis@

Reply via email to