1# Common defines for all of stand/i386/ 2# 3 4.include "bsd.linker.mk" 5 6LOADER_ADDRESS?=0x200000 7LDFLAGS+= -nostdlib 8LDFLAGS.lld+= -Wl,--no-rosegment 9MK_PIE:= no 10 11# BTX components 12BTXDIR= ${BOOTOBJ}/i386/btx 13BTXLDR= ${BTXDIR}/btxldr/btxldr 14BTXKERN= ${BTXDIR}/btx/btx 15BTXCRT= ${BTXDIR}/lib/crt0.o 16 17BTXSRC= ${BOOTSRC}/i386/btx 18BTXLIB= ${BTXSRC}/lib 19 20CFLAGS+= -I${BTXLIB} 21 22# compact binary with no padding between text, data, bss 23LDSCRIPT= ${BOOTSRC}/i386/boot.ldscript 24LDFLAGS_ORG= -Wl,--defsym,ORG=${ORG},-T,${LDSCRIPT} 25LDFLAGS_BIN= -e start ${LDFLAGS_ORG} -Wl,-N,-S,--oformat,binary 26.if ${LINKER_FEATURES:Mbuild-id} != "" 27LDFLAGS_BIN+= -Wl,--build-id=none 28.endif 29LD_FLAGS_BIN= -static -N --gc-sections 30 31.if ${MACHINE_CPUARCH} == "amd64" 32DO32=1 33.endif 34 35.include "../Makefile.inc" 36