1# Common defines for all of stand/i386/ 2# 3# $FreeBSD$ 4 5.include "bsd.linker.mk" 6 7LOADER_ADDRESS?=0x200000 8LDFLAGS+= -nostdlib 9LDFLAGS.lld+= -Wl,--no-rosegment 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 24# LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary 25# LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections 26LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary 27.if ${LINKER_FEATURES:Mbuild-id} != "" 28LDFLAGS_BIN+=-Wl,--build-id=none 29.endif 30LD_FLAGS_BIN=-static -N --gc-sections 31 32.if ${MACHINE_CPUARCH} == "amd64" 33DO32=1 34.endif 35 36.if defined(LOADER_FIREWIRE_SUPPORT) 37MK_LOADER_FIREWIRE=yes 38.warning "LOADER_FIREWIRE_SUPPORT deprecated, please move to WITH_LOADER_FIREWIRE" 39.endif 40 41.include "../Makefile.inc" 42