Add ld.script for macppc kernel, ofwboot
authorgkoehler <gkoehler@openbsd.org>
Mon, 10 May 2021 17:29:41 +0000 (17:29 +0000)
committergkoehler <gkoehler@openbsd.org>
Mon, 10 May 2021 17:29:41 +0000 (17:29 +0000)
commitf9a50ba4653512ab6e14477b1e61ef4e338eef5e
tree24773371a281f961d8f3c4ed0fb8ffe845e6d0bc
parent3bbc645f32a7ebeacdaa36b168febf6e9e0c69ad
Add ld.script for macppc kernel, ofwboot

These are copies of powerpc64/conf/ld.script with some changes for
macppc.  They work with both ld.bfd and ld.lld.

The ld.script fixes ld.lld.  Without ld.script, lld would set the
symbol "etext" to a wrong value like 0x10000034, then ofwboot would
freeze and fail to boot the kernel.  With ld.script, we PROVIDE a
correct etext.

ok kettenis@
sys/arch/macppc/conf/Makefile.macppc
sys/arch/macppc/conf/ld.script
sys/arch/macppc/stand/ofwboot/Makefile
sys/arch/macppc/stand/ofwboot/ld.script [new file with mode: 0644]