head	1.9;
access;
symbols
	netbsd-11-0-RC4:1.9
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.38
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.9
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.36
	perseant-exfatfs-base:1.9
	netbsd-8-3-RELEASE:1.7
	netbsd-9-4-RELEASE:1.9
	netbsd-10-0-RELEASE:1.9
	netbsd-10-0-RC6:1.9
	netbsd-10-0-RC5:1.9
	netbsd-10-0-RC4:1.9
	netbsd-10-0-RC3:1.9
	netbsd-10-0-RC2:1.9
	thorpej-ifq:1.9.0.34
	thorpej-ifq-base:1.9
	thorpej-altq-separation:1.9.0.32
	thorpej-altq-separation-base:1.9
	netbsd-10-0-RC1:1.9
	netbsd-10:1.9.0.30
	netbsd-10-base:1.9
	bouyer-sunxi-drm:1.9.0.28
	bouyer-sunxi-drm-base:1.9
	netbsd-9-3-RELEASE:1.9
	thorpej-i2c-spi-conf2:1.9.0.26
	thorpej-i2c-spi-conf2-base:1.9
	thorpej-futex2:1.9.0.24
	thorpej-futex2-base:1.9
	thorpej-cfargs2:1.9.0.22
	thorpej-cfargs2-base:1.9
	cjep_sun2x-base1:1.9
	cjep_sun2x:1.9.0.20
	cjep_sun2x-base:1.9
	cjep_staticlib_x-base1:1.9
	netbsd-9-2-RELEASE:1.9
	cjep_staticlib_x:1.9.0.18
	cjep_staticlib_x-base:1.9
	thorpej-i2c-spi-conf:1.9.0.16
	thorpej-i2c-spi-conf-base:1.9
	thorpej-cfargs:1.9.0.14
	thorpej-cfargs-base:1.9
	thorpej-futex:1.9.0.12
	thorpej-futex-base:1.9
	netbsd-9-1-RELEASE:1.9
	bouyer-xenpvh-base2:1.9
	phil-wifi-20200421:1.9
	bouyer-xenpvh-base1:1.9
	phil-wifi-20200411:1.9
	bouyer-xenpvh:1.9.0.10
	bouyer-xenpvh-base:1.9
	is-mlppp:1.9.0.8
	is-mlppp-base:1.9
	phil-wifi-20200406:1.9
	netbsd-8-2-RELEASE:1.7
	ad-namecache-base3:1.9
	netbsd-9-0-RELEASE:1.9
	netbsd-9-0-RC2:1.9
	ad-namecache-base2:1.9
	ad-namecache-base1:1.9
	ad-namecache:1.9.0.6
	ad-namecache-base:1.9
	netbsd-9-0-RC1:1.9
	phil-wifi-20191119:1.9
	netbsd-9:1.9.0.4
	netbsd-9-base:1.9
	phil-wifi-20190609:1.9
	netbsd-8-1-RELEASE:1.7
	netbsd-8-1-RC1:1.7
	isaki-audio2:1.9.0.2
	isaki-audio2-base:1.9
	pgoyette-compat-merge-20190127:1.7.28.2
	pgoyette-compat-20190127:1.9
	pgoyette-compat-20190118:1.9
	pgoyette-compat-1226:1.9
	pgoyette-compat-1126:1.9
	pgoyette-compat-1020:1.9
	pgoyette-compat-0930:1.9
	pgoyette-compat-0906:1.9
	netbsd-7-2-RELEASE:1.7
	pgoyette-compat-0728:1.9
	netbsd-8-0-RELEASE:1.7
	phil-wifi:1.8.0.2
	phil-wifi-base:1.8
	pgoyette-compat-0625:1.8
	netbsd-8-0-RC2:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	netbsd-8-0-RC1:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	netbsd-7-1-2-RELEASE:1.7
	pgoyette-compat:1.7.0.28
	pgoyette-compat-base:1.7
	netbsd-7-1-1-RELEASE:1.7
	tls-maxphys-base-20171202:1.7
	matt-nb8-mediatek:1.7.0.26
	matt-nb8-mediatek-base:1.7
	nick-nhusb-base-20170825:1.7
	perseant-stdc-iso10646:1.7.0.24
	perseant-stdc-iso10646-base:1.7
	netbsd-8:1.7.0.22
	netbsd-8-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.20
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	jdolecek-ncq:1.7.0.18
	jdolecek-ncq-base:1.7
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.7.0.16
	netbsd-7-1-RELEASE:1.7
	netbsd-7-1-RC2:1.7
	nick-nhusb-base-20170204:1.7
	netbsd-7-nhusb-base-20170116:1.7
	bouyer-socketcan:1.7.0.14
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.7
	nick-nhusb-base-20161204:1.7
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.7
	nick-nhusb-base-20161004:1.7
	localcount-20160914:1.7
	netbsd-7-nhusb:1.7.0.12
	netbsd-7-nhusb-base:1.7
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.10
	pgoyette-localcount-base:1.7
	nick-nhusb-base-20160907:1.7
	nick-nhusb-base-20160529:1.7
	netbsd-7-0-1-RELEASE:1.7
	nick-nhusb-base-20160422:1.7
	nick-nhusb-base-20160319:1.7
	nick-nhusb-base-20151226:1.7
	netbsd-7-0:1.7.0.8
	netbsd-7-0-RELEASE:1.7
	nick-nhusb-base-20150921:1.7
	netbsd-7-0-RC3:1.7
	netbsd-7-0-RC2:1.7
	netbsd-7-0-RC1:1.7
	nick-nhusb-base-20150606:1.7
	nick-nhusb-base-20150406:1.7
	nick-nhusb:1.7.0.6
	nick-nhusb-base:1.7
	netbsd-5-2-3-RELEASE:1.3
	netbsd-5-1-5-RELEASE:1.3
	netbsd-6-0-6-RELEASE:1.6
	netbsd-6-1-5-RELEASE:1.6
	netbsd-7:1.7.0.4
	netbsd-7-base:1.7
	yamt-pagecache-base9:1.7
	yamt-pagecache-tag8:1.6
	netbsd-6-1-4-RELEASE:1.6
	netbsd-6-0-5-RELEASE:1.6
	tls-earlyentropy:1.7.0.2
	tls-earlyentropy-base:1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7
	riastradh-drm2-base3:1.7
	netbsd-6-1-3-RELEASE:1.6
	netbsd-6-0-4-RELEASE:1.6
	netbsd-5-2-2-RELEASE:1.3
	netbsd-5-1-4-RELEASE:1.3
	netbsd-6-1-2-RELEASE:1.6
	netbsd-6-0-3-RELEASE:1.6
	netbsd-5-2-1-RELEASE:1.3
	netbsd-5-1-3-RELEASE:1.3
	rmind-smpnet-nbase:1.7
	netbsd-6-1-1-RELEASE:1.6
	riastradh-drm2-base2:1.6
	riastradh-drm2-base1:1.6
	riastradh-drm2:1.6.0.26
	riastradh-drm2-base:1.6
	rmind-smpnet:1.6.0.18
	rmind-smpnet-base:1.7
	netbsd-6-1:1.6.0.24
	netbsd-6-0-2-RELEASE:1.6
	netbsd-6-1-RELEASE:1.6
	khorben-n900:1.6.0.22
	netbsd-6-1-RC4:1.6
	netbsd-6-1-RC3:1.6
	agc-symver:1.6.0.20
	agc-symver-base:1.6
	netbsd-6-1-RC2:1.6
	netbsd-6-1-RC1:1.6
	yamt-pagecache-base8:1.6
	netbsd-5-2:1.3.0.18
	netbsd-6-0-1-RELEASE:1.6
	yamt-pagecache-base7:1.6
	netbsd-5-2-RELEASE:1.3
	netbsd-5-2-RC1:1.3
	matt-nb6-plus-nbase:1.6
	yamt-pagecache-base6:1.6
	netbsd-6-0:1.6.0.16
	netbsd-6-0-RELEASE:1.6
	netbsd-6-0-RC2:1.6
	tls-maxphys:1.6.0.14
	tls-maxphys-base:1.7
	matt-nb6-plus:1.6.0.12
	matt-nb6-plus-base:1.6
	netbsd-6-0-RC1:1.6
	jmcneill-usbmp-base10:1.6
	yamt-pagecache-base5:1.6
	jmcneill-usbmp-base9:1.6
	yamt-pagecache-base4:1.6
	jmcneill-usbmp-base8:1.6
	jmcneill-usbmp-base7:1.6
	jmcneill-usbmp-base6:1.6
	jmcneill-usbmp-base5:1.6
	jmcneill-usbmp-base4:1.6
	jmcneill-usbmp-base3:1.6
	jmcneill-usbmp-pre-base2:1.6
	jmcneill-usbmp-base2:1.6
	netbsd-6:1.6.0.10
	netbsd-6-base:1.6
	netbsd-5-1-2-RELEASE:1.3
	netbsd-5-1-1-RELEASE:1.3
	jmcneill-usbmp:1.6.0.8
	jmcneill-usbmp-base:1.6
	jmcneill-audiomp3:1.6.0.6
	jmcneill-audiomp3-base:1.6
	yamt-pagecache-base3:1.6
	yamt-pagecache-base2:1.6
	yamt-pagecache:1.6.0.4
	yamt-pagecache-base:1.6
	rmind-uvmplock-nbase:1.6
	cherry-xenmp:1.6.0.2
	cherry-xenmp-base:1.6
	jym-xensuspend-nbase:1.6
	uebayasi-xip-base7:1.5
	bouyer-quota2-nbase:1.5
	bouyer-quota2:1.5.0.8
	bouyer-quota2-base:1.5
	jruoho-x86intr:1.5.0.6
	jruoho-x86intr-base:1.5
	matt-mips64-premerge-20101231:1.5
	matt-nb5-mips64-premerge-20101231:1.3
	matt-nb5-pq3:1.3.0.16
	matt-nb5-pq3-base:1.3
	netbsd-5-1:1.3.0.14
	uebayasi-xip-base6:1.5
	uebayasi-xip-base5:1.5
	netbsd-5-1-RELEASE:1.3
	uebayasi-xip-base4:1.5
	uebayasi-xip-base3:1.5
	yamt-nfs-mp-base11:1.5
	netbsd-5-1-RC4:1.3
	matt-nb5-mips64-k15:1.3
	uebayasi-xip-base2:1.5
	yamt-nfs-mp-base10:1.5
	netbsd-5-1-RC3:1.3
	netbsd-5-1-RC2:1.3
	uebayasi-xip-base1:1.5
	netbsd-5-1-RC1:1.3
	rmind-uvmplock:1.5.0.4
	rmind-uvmplock-base:1.6
	yamt-nfs-mp-base9:1.5
	uebayasi-xip:1.5.0.2
	uebayasi-xip-base:1.5
	netbsd-5-0-2-RELEASE:1.3
	matt-nb5-mips64-premerge-20091211:1.3
	matt-premerge-20091211:1.5
	yamt-nfs-mp-base8:1.5
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.3
	matt-nb4-mips64-k7-u2a-k9b:1.3
	matt-nb5-mips64-u1-k1-k5:1.3
	yamt-nfs-mp-base7:1.5
	matt-nb5-mips64:1.3.0.12
	netbsd-5-0-1-RELEASE:1.3
	jymxensuspend-base:1.5
	yamt-nfs-mp-base6:1.5
	yamt-nfs-mp-base5:1.5
	yamt-nfs-mp-base4:1.5
	yamt-nfs-mp-base3:1.5
	nick-hppapmap-base4:1.5
	nick-hppapmap-base3:1.5
	netbsd-5-0:1.3.0.10
	netbsd-5-0-RELEASE:1.3
	netbsd-5-0-RC4:1.3
	netbsd-5-0-RC3:1.3
	nick-hppapmap-base2:1.3
	netbsd-5-0-RC2:1.3
	jym-xensuspend:1.3.0.8
	jym-xensuspend-base:1.6
	netbsd-5-0-RC1:1.3
	haad-dm-base2:1.3
	haad-nbase2:1.3
	ad-audiomp2:1.3.0.6
	ad-audiomp2-base:1.3
	netbsd-5:1.3.0.4
	netbsd-5-base:1.3
	nick-hppapmap:1.3.0.2
	nick-hppapmap-base:1.5
	matt-mips64-base2:1.2
	haad-dm-base1:1.1
	wrstuden-revivesa-base-4:1.1
	wrstuden-revivesa-base-3:1.1
	wrstuden-revivesa-base-2:1.1
	nick-csl-alignment-base5:1.1
	haad-dm:1.1.0.58
	haad-dm-base:1.3
	wrstuden-revivesa-base-1:1.1
	simonb-wapbl-nbase:1.1
	yamt-pf42-base4:1.1
	simonb-wapbl:1.1.0.56
	simonb-wapbl-base:1.1
	yamt-pf42-base3:1.1
	hpcarm-cleanup-nbase:1.1
	yamt-pf42-baseX:1.1
	yamt-pf42-base2:1.1
	yamt-nfs-mp-base2:1.1
	wrstuden-revivesa:1.1.0.54
	wrstuden-revivesa-base:1.1
	yamt-nfs-mp:1.1.0.52
	yamt-nfs-mp-base:1.1
	yamt-pf42:1.1.0.50
	yamt-pf42-base:1.1
	ad-socklock-base1:1.1
	yamt-lazymbuf-base15:1.1
	yamt-lazymbuf-base14:1.1
	keiichi-mipv6-nbase:1.1
	mjf-devfs2:1.1.0.48
	mjf-devfs2-base:1.3
	nick-net80211-sync:1.1.0.46
	nick-net80211-sync-base:1.1
	keiichi-mipv6:1.1.0.44
	keiichi-mipv6-base:1.1
	bouyer-xeni386-merge1:1.1
	matt-armv6-prevmlocking:1.1
	vmlocking2-base3:1.1
	bouyer-xeni386-nbase:1.1
	yamt-kmem-base3:1.1
	cube-autoconf:1.1.0.42
	cube-autoconf-base:1.1
	yamt-kmem-base2:1.1
	bouyer-xeni386:1.1.0.40
	bouyer-xeni386-base:1.1
	yamt-kmem:1.1.0.38
	yamt-kmem-base:1.1
	vmlocking2-base2:1.1
	reinoud-bufcleanup-nbase:1.1
	vmlocking2:1.1.0.36
	vmlocking2-base1:1.1
	matt-armv6-nbase:1.1
	jmcneill-base:1.1
	mjf-devfs:1.1.0.34
	mjf-devfs-base:1.1
	bouyer-xenamd64-base2:1.1
	vmlocking-nbase:1.1
	yamt-x86pmap-base4:1.1
	bouyer-xenamd64:1.1.0.32
	bouyer-xenamd64-base:1.1
	yamt-x86pmap-base3:1.1
	yamt-x86pmap-base2:1.1
	yamt-x86pmap:1.1.0.30
	yamt-x86pmap-base:1.1
	matt-armv6:1.1.0.28
	matt-armv6-base:1.1
	jmcneill-pm:1.1.0.26
	jmcneill-pm-base:1.1
	hpcarm-cleanup:1.1.0.24
	hpcarm-cleanup-base:1.1
	nick-csl-alignment:1.1.0.22
	nick-csl-alignment-base:1.1
	matt-mips64:1.1.0.20
	matt-mips64-base:1.1
	yamt-idlelwp-base8:1.1
	ppcoea-renovation:1.1.0.18
	ppcoea-renovation-base:1.1
	thorpej-atomic:1.1.0.16
	thorpej-atomic-base:1.1
	reinoud-bufcleanup:1.1.0.14
	reinoud-bufcleanup-base:1.1
	mjf-ufs-trans:1.1.0.12
	mjf-ufs-trans-base:1.1
	vmlocking:1.1.0.10
	vmlocking-base:1.1
	ad-audiomp:1.1.0.8
	yamt-lazymbuf:1.1.0.6
	ad-audiomp-base:1.1
	yamt-idlelwp:1.1.0.4
	post-newlock2-merge:1.1
	newlock2-nbase:1.1
	newlock2-base:1.1
	newlock2:1.1.0.2;
locks; strict;
comment	@# @;


1.9
date	2018.07.25.23.45.32;	author kamil;	state Exp;
branches;
next	1.8;
commitid	Lcj3I3cyT8RYJzLA;

1.8
date	2018.06.02.14.30.07;	author christos;	state Exp;
branches
	1.8.2.1;
next	1.7;
commitid	GfAZHbOeqzIVnIEA;

1.7
date	2014.01.12.15.26.29;	author tsutsui;	state Exp;
branches
	1.7.28.1;
next	1.6;
commitid	YjbnVt32CCoKaQkx;

1.6
date	2011.05.20.22.29.56;	author joerg;	state Exp;
branches
	1.6.4.1
	1.6.14.1
	1.6.18.1;
next	1.5;

1.5
date	2009.03.30.09.22.52;	author tsutsui;	state Exp;
branches
	1.5.4.1
	1.5.6.1;
next	1.4;

1.4
date	2009.03.12.17.16.59;	author abs;	state Exp;
branches;
next	1.3;

1.3
date	2008.10.25.22.27.37;	author apb;	state Exp;
branches
	1.3.2.1
	1.3.8.1;
next	1.2;

1.2
date	2008.10.20.03.02.07;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	2007.01.06.20.47.15;	author dsl;	state Exp;
branches
	1.1.2.1
	1.1.6.1
	1.1.48.1
	1.1.52.1
	1.1.58.1;
next	;

1.8.2.1
date	2019.06.10.22.06.22;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.7.28.1
date	2018.06.25.07.25.43;	author pgoyette;	state Exp;
branches;
next	1.7.28.2;
commitid	8PtAu9af7VvhiDHA;

1.7.28.2
date	2018.07.28.04.37.35;	author pgoyette;	state Exp;
branches;
next	;
commitid	1UP1xAIUxv1ZgRLA;

1.6.4.1
date	2014.05.22.11.39.52;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.6.14.1
date	2014.08.20.00.03.07;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.6.18.1
date	2014.05.18.17.45.13;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.5.4.1
date	2011.05.31.03.04.05;	author rmind;	state Exp;
branches;
next	;

1.5.6.1
date	2011.06.06.09.05.52;	author jruoho;	state Exp;
branches;
next	;

1.3.2.1
date	2009.04.28.07.34.14;	author skrll;	state Exp;
branches;
next	;

1.3.8.1
date	2009.05.13.17.17.51;	author jym;	state Exp;
branches;
next	1.3.8.2;

1.3.8.2
date	2009.11.01.13.58.36;	author jym;	state Exp;
branches;
next	1.3.8.3;

1.3.8.3
date	2011.08.27.15.37.27;	author jym;	state Exp;
branches;
next	;

1.1.2.1
date	2007.01.06.20.47.15;	author ad;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2007.01.12.01.00.51;	author ad;	state Exp;
branches;
next	;

1.1.6.1
date	2007.01.06.20.47.15;	author yamt;	state dead;
branches;
next	1.1.6.2;

1.1.6.2
date	2007.02.26.09.07.04;	author yamt;	state Exp;
branches;
next	;

1.1.48.1
date	2009.01.17.13.28.05;	author mjf;	state Exp;
branches;
next	;

1.1.52.1
date	2009.05.04.08.11.18;	author yamt;	state Exp;
branches;
next	;

1.1.58.1
date	2008.12.13.01.13.14;	author haad;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Specify NOLIBCSANITIZER in x86 bootloader-like code under sys/arch/

Set NOLIBCSANITIZER for i386 and amd64 specific bootloader-like code.
@
text
@#	$NetBSD: Makefile.fat,v 1.8 2018/06/02 14:30:07 christos Exp $

S=		${.CURDIR}/../../../../..

PROG?=		fatboot
NOMAN=		# defined
NOPIE=		# defined
NOLIBCSANITIZER=# defined
NOSANITIZER=	# defined

LIBCRT0=	# nothing
LIBCRTI=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

AFLAGS.fatboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

.include <bsd.init.mk>

STRIPFLAG=	# override

SRCS=		fatboot.S

BINDIR=		/usr/mdec
BINMODE=	444

.PATH:		${.CURDIR}/..

LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+=	-DFAT_ENTRY_SIZE=${FAT_ENTRY_SIZE}

.if ${MACHINE_ARCH} == "x86_64"
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
.endif

BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86

DPSRCS+=	machine x86

CLEANFILES+=	${PROG}.tmp

${PROG}: ${OBJS}
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x7c00 ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<pbr_space\>' \
		    | ${TOOL_SED} 's/^0*//'  ); \
		echo "#### There are $$1 free bytes in ${PROG}"
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@


1.8
log
@- Disable MKSANITIZER
- Redo using NOPIE
- Add NORELRO
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.7 2014/01/12 15:26:29 tsutsui Exp $
d8 1
@


1.8.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.9 2018/07/25 23:45:32 kamil Exp $
a7 1
NOLIBCSANITIZER=# defined
@


1.7
log
@Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.6 2011/05/20 22:29:56 joerg Exp $
d7 2
d18 1
a18 5
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=

.include <bsd.own.mk>
@


1.7.28.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.8 2018/06/02 14:30:07 christos Exp $
a6 2
NOPIE=		# defined
NOSANITIZER=	# defined
d16 5
a20 1
.include <bsd.init.mk>
@


1.7.28.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.9 2018/07/25 23:45:32 kamil Exp $
a7 1
NOLIBCSANITIZER=# defined
@


1.6
log
@Disable integrated assembler for files that use .code16 or .code32 for
now. Disable Clang completely for bootxx and netboot for now until the
size issue has been sorted out.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.5 2009/03/30 09:22:52 tsutsui Exp $
d9 1
@


1.6.14.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a8 1
LIBCRTI=	# nothing
@


1.6.4.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.6 2011/05/20 22:29:56 joerg Exp $
a8 1
LIBCRTI=	# nothing
@


1.6.18.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.6 2011/05/20 22:29:56 joerg Exp $
a8 1
LIBCRTI=	# nothing
@


1.5
log
@Remove extra trailing slash in ${S} path.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.4 2009/03/12 17:16:59 abs Exp $
d13 2
@


1.5.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.6 2011/05/20 22:29:56 joerg Exp $
a12 2
AFLAGS.fatboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.5.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
a12 2
AFLAGS.fatboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.4
log
@Prefer MACHINE_ARCH to MACHINE in some tests
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.3 2008/10/25 22:27:37 apb Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../../
@


1.3
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.2 2008/10/20 03:02:07 christos Exp $
d32 1
a32 1
.if ${MACHINE} == "amd64"
@


1.3.8.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.5 2009/03/30 09:22:52 tsutsui Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
d32 1
a32 1
.if ${MACHINE_ARCH} == "x86_64"
@


1.3.8.2
log
@Sync with HEAD.
@
text
@@


1.3.8.3
log
@Sync with HEAD. Most notably: uvm/pmap work done by rmind@@, and MP Xen
work of cherry@@.

No regression observed on suspend/restore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.6 2011/05/20 22:29:56 joerg Exp $
a12 2
AFLAGS.fatboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.3.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.5 2009/03/30 09:22:52 tsutsui Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
d32 1
a32 1
.if ${MACHINE_ARCH} == "x86_64"
@


1.2
log
@disable PIE for boot code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.1 2007/01/06 20:47:15 dsl Exp $
d48 1
a48 1
		    | sed 's/^0*//'  ); \
@


1.1
log
@Change build to allow a fat32 bootstrap to be built from the same sources
(the relevant changes haven't been done though).
Call built binary bootxx_fat16 for consistency.
Use 'push %cs' to push a zero value in places where we had relied on %bx
being zero from much higher up the code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2007/01/01 22:11:09 dsl Exp $
d13 4
@


1.1.2.1
log
@file Makefile.fat was added on branch newlock2 on 2007-01-12 01:00:51 +0000
@
text
@d1 49
@


1.1.2.2
log
@Sync with head.
@
text
@a0 49
#	$NetBSD: Makefile.fat,v 1.1.2.1 2007/01/12 01:00:51 ad Exp $

S=		${.CURDIR}/../../../../../

PROG?=		fatboot
NOMAN=		# defined

LIBCRT0=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

.include <bsd.own.mk>

STRIPFLAG=	# override

SRCS=		fatboot.S

BINDIR=		/usr/mdec
BINMODE=	444

.PATH:		${.CURDIR}/..

LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+=	-DFAT_ENTRY_SIZE=${FAT_ENTRY_SIZE}

.if ${MACHINE} == "amd64"
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
.endif

BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86

DPSRCS+=	machine x86

CLEANFILES+=	${PROG}.tmp

${PROG}: ${OBJS}
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x7c00 ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<pbr_space\>' \
		    | sed 's/^0*//'  ); \
		echo "#### There are $$1 free bytes in ${PROG}"
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@


1.1.6.1
log
@file Makefile.fat was added on branch yamt-lazymbuf on 2007-02-26 09:07:04 +0000
@
text
@d1 49
@


1.1.6.2
log
@sync with head.
@
text
@a0 49
#	$NetBSD: Makefile.fat,v 1.1.6.1 2007/02/26 09:07:04 yamt Exp $

S=		${.CURDIR}/../../../../../

PROG?=		fatboot
NOMAN=		# defined

LIBCRT0=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

.include <bsd.own.mk>

STRIPFLAG=	# override

SRCS=		fatboot.S

BINDIR=		/usr/mdec
BINMODE=	444

.PATH:		${.CURDIR}/..

LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../../lib -I${S}
CPPFLAGS+=	-DFAT_ENTRY_SIZE=${FAT_ENTRY_SIZE}

.if ${MACHINE} == "amd64"
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
.endif

BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86

DPSRCS+=	machine x86

CLEANFILES+=	${PROG}.tmp

${PROG}: ${OBJS}
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x7c00 ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<pbr_space\>' \
		    | sed 's/^0*//'  ); \
		echo "#### There are $$1 free bytes in ${PROG}"
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@


1.1.52.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.1 2007/01/06 20:47:15 dsl Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../..
a12 4
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=

d28 1
a28 1
.if ${MACHINE_ARCH} == "x86_64"
d44 1
a44 1
		    | ${TOOL_SED} 's/^0*//'  ); \
@


1.1.48.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
a12 4
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=

d44 1
a44 1
		    | ${TOOL_SED} 's/^0*//'  ); \
@


1.1.58.1
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.fat,v 1.3 2008/10/25 22:27:37 apb Exp $
a12 4
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=

d44 1
a44 1
		    | ${TOOL_SED} 's/^0*//'  ); \
@
