head	1.5;
access;
symbols
	netbsd-11-0-RC4:1.5
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.10
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.8
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.6
	netbsd-10-base:1.5
	netbsd-9-3-RELEASE:1.3
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.4
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.5.0.2
	cjep_staticlib_x-base:1.5
	netbsd-9-1-RELEASE:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.4
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.2
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.2
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	pgoyette-compat-merge-20190127:1.2.28.1
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.2.0.30
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.2.0.28
	pgoyette-compat-base:1.2
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.2.0.26
	matt-nb8-mediatek-base:1.2
	perseant-stdc-iso10646:1.2.0.24
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.22
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.20
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	netbsd-7-1:1.2.0.18
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.2.0.16
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.2.0.14
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.12
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.10
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	netbsd-5-2-3-RELEASE:1.1
	netbsd-5-1-5-RELEASE:1.1
	netbsd-6-0-6-RELEASE:1.1
	netbsd-6-1-5-RELEASE:1.1
	netbsd-7:1.2.0.8
	netbsd-7-base:1.2
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.1
	netbsd-6-1-4-RELEASE:1.1
	netbsd-6-0-5-RELEASE:1.1
	tls-earlyentropy:1.2.0.6
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	netbsd-6-1-3-RELEASE:1.1
	netbsd-6-0-4-RELEASE:1.1
	netbsd-5-2-2-RELEASE:1.1
	netbsd-5-1-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.1
	netbsd-6-0-3-RELEASE:1.1
	netbsd-5-2-1-RELEASE:1.1
	netbsd-5-1-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.1
	riastradh-drm2-base2:1.2
	riastradh-drm2-base1:1.2
	riastradh-drm2:1.2.0.2
	riastradh-drm2-base:1.2
	netbsd-6-1:1.1.0.44
	netbsd-6-0-2-RELEASE:1.1
	netbsd-6-1-RELEASE:1.1
	netbsd-6-1-RC4:1.1
	netbsd-6-1-RC3:1.1
	agc-symver:1.2.0.4
	agc-symver-base:1.2
	netbsd-6-1-RC2:1.1
	netbsd-6-1-RC1:1.1
	yamt-pagecache-base8:1.1
	netbsd-5-2:1.1.0.42
	netbsd-6-0-1-RELEASE:1.1
	yamt-pagecache-base7:1.1
	netbsd-5-2-RELEASE:1.1
	netbsd-5-2-RC1:1.1
	matt-nb6-plus-nbase:1.1
	yamt-pagecache-base6:1.1
	netbsd-6-0:1.1.0.40
	netbsd-6-0-RELEASE:1.1
	netbsd-6-0-RC2:1.1
	tls-maxphys:1.1.0.38
	tls-maxphys-base:1.2
	matt-nb6-plus:1.1.0.36
	matt-nb6-plus-base:1.1
	netbsd-6-0-RC1:1.1
	yamt-pagecache-base5:1.1
	yamt-pagecache-base4:1.1
	netbsd-6:1.1.0.34
	netbsd-6-base:1.1
	netbsd-5-1-2-RELEASE:1.1
	netbsd-5-1-1-RELEASE:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.32
	yamt-pagecache-base:1.1
	cherry-xenmp:1.1.0.30
	cherry-xenmp-base:1.1
	bouyer-quota2-nbase:1.1
	bouyer-quota2:1.1.0.28
	bouyer-quota2-base:1.1
	matt-mips64-premerge-20101231:1.1
	matt-nb5-mips64-premerge-20101231:1.1
	matt-nb5-pq3:1.1.0.26
	matt-nb5-pq3-base:1.1
	netbsd-5-1:1.1.0.24
	netbsd-5-1-RELEASE:1.1
	netbsd-5-1-RC4:1.1
	matt-nb5-mips64-k15:1.1
	netbsd-5-1-RC3:1.1
	netbsd-5-1-RC2:1.1
	netbsd-5-1-RC1:1.1
	netbsd-5-0-2-RELEASE:1.1
	matt-nb5-mips64-premerge-20091211:1.1
	matt-premerge-20091211:1.1
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1
	matt-nb4-mips64-k7-u2a-k9b:1.1
	matt-nb5-mips64-u1-k1-k5:1.1
	matt-nb5-mips64:1.1.0.22
	netbsd-5-0-1-RELEASE:1.1
	jym-xensuspend-nbase:1.1
	netbsd-5-0:1.1.0.20
	netbsd-5-0-RELEASE:1.1
	netbsd-5-0-RC4:1.1
	netbsd-5-0-RC3:1.1
	netbsd-5-0-RC2:1.1
	jym-xensuspend:1.1.0.18
	jym-xensuspend-base:1.1
	netbsd-5-0-RC1:1.1
	christos-time_t-nbase:1.1
	christos-time_t:1.1.0.16
	christos-time_t-base:1.1
	netbsd-5:1.1.0.14
	netbsd-5-base:1.1
	matt-mips64-base2:1.1
	mjf-devfs2:1.1.0.12
	mjf-devfs2-base:1.1
	wrstuden-revivesa-base-3:1.1
	wrstuden-revivesa-base-2:1.1
	wrstuden-revivesa-base-1:1.1
	yamt-pf42-base4:1.1
	yamt-pf42-base3:1.1
	hpcarm-cleanup-nbase:1.1
	yamt-pf42-baseX:1.1
	yamt-pf42-base2:1.1
	wrstuden-revivesa:1.1.0.10
	wrstuden-revivesa-base:1.1
	yamt-pf42:1.1.0.8
	yamt-pf42-base:1.1
	hpcarm-cleanup-base:1.1
	keiichi-mipv6:1.1.0.6
	keiichi-mipv6-base:1.1
	matt-armv6-base:1.1
	matt-armv6:1.1.0.4
	matt-armv6-nbase:1.1
	cube-autoconf:1.1.0.2
	cube-autoconf-base:1.1;
locks; strict;
comment	@# @;


1.5
date	2021.04.20.21.42.32;	author christos;	state Exp;
branches;
next	1.4;
commitid	xGnkQiYG8N8mV4QC;

1.4
date	2020.04.22.23.32.25;	author joerg;	state Exp;
branches;
next	1.3;
commitid	14Zmz5U66kwTcr5C;

1.3
date	2018.08.03.04.29.35;	author kamil;	state Exp;
branches;
next	1.2;
commitid	R6jtzFKz8HZi3DMA;

1.2
date	2013.01.29.19.14.02;	author matt;	state Exp;
branches
	1.2.28.1
	1.2.30.1;
next	1.1;

1.1
date	2007.11.13.15.21.20;	author ad;	state Exp;
branches
	1.1.4.1
	1.1.32.1
	1.1.38.1;
next	;

1.2.28.1
date	2018.09.06.06.55.19;	author pgoyette;	state Exp;
branches;
next	;
commitid	HCi1bXD317XIK0RA;

1.2.30.1
date	2019.06.10.22.05.20;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.1.4.1
date	2007.11.13.15.21.20;	author matt;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2008.01.09.01.34.10;	author matt;	state Exp;
branches;
next	;

1.1.32.1
date	2014.05.22.11.36.52;	author yamt;	state Exp;
branches;
next	;
commitid	HJV5p3BoaVY5KwBx;

1.1.38.1
date	2013.02.25.00.27.51;	author tls;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Instead of compiling files with -fcommon, create an include file and declare
the 3 symbols that need to be common using an attribute. Put all the 3 symbol
definitions in libc in one place (initfini.c). Reviewed by joerg@@
@
text
@#	$NetBSD: Makefile.inc,v 1.4 2020/04/22 23:32:25 joerg Exp $
#	@@(#)Makefile.inc	8.3 (Berkeley) 10/24/94

.PATH: ${ARCHDIR}/misc ${.CURDIR}/misc

# other sources shared with the kernel
.if ${MKLIBCSANITIZER:Uno} == "yes"
SRCS+= ubsan.c
.endif

# constructor
SRCS+=	initfini.c

# for -fstack-protector
SRCS+=	stack_protector.c
@


1.4
log
@Explicitly use -fcommon for globals shared between libc and CSU.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2018/08/03 04:29:35 kamil Exp $
a15 3

# Ownership of globals from crt0.o is shared with libc for historic reasons
COPTS.initfini.c+=		-fcommon
@


1.3
log
@Add a support to build ubsan.c in libc

Under the condition of MKLIBCSANITIZER==yes link ubsan.c into libc.

This is a clean-room reimplementation from scratch of the Undefined
Behavior runtime called micro-UBSan (or uBSan - user-UBSan).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2013/01/29 19:14:02 matt Exp $
d16 3
@


1.2
log
@Add ${ARCHDIR}/misc to path
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2007/11/13 15:21:20 ad Exp $
d6 5
@


1.2.30.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2018/08/03 04:29:35 kamil Exp $
a5 5
# other sources shared with the kernel
.if ${MKLIBCSANITIZER:Uno} == "yes"
SRCS+= ubsan.c
.endif

@


1.2.28.1
log
@Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2018/08/03 04:29:35 kamil Exp $
a5 5
# other sources shared with the kernel
.if ${MKLIBCSANITIZER:Uno} == "yes"
SRCS+= ubsan.c
.endif

@


1.1
log
@- stack_protector.c doesn't really belong under sys/. Add a new directory
  for misc support routines and put it there.
- Add a libc constructor. Use this to initialize threading and the
  stack protector stuff. libpthread cannot be initialized safely using
  its own constructor because libc and libpthread are deeply intertwined.
  PR bin/37347
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.179 2007/11/12 23:11:58 ad Exp $
d4 1
a4 1
.PATH: ${.CURDIR}/misc
@


1.1.32.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.inc,v 1.1 2007/11/13 15:21:20 ad Exp $
d4 1
a4 1
.PATH: ${ARCHDIR}/misc ${.CURDIR}/misc
@


1.1.38.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2007/11/13 15:21:20 ad Exp $
d4 1
a4 1
.PATH: ${ARCHDIR}/misc ${.CURDIR}/misc
@


1.1.4.1
log
@file Makefile.inc was added on branch matt-armv6 on 2008-01-09 01:34:10 +0000
@
text
@d1 10
@


1.1.4.2
log
@sync with HEAD
@
text
@a0 10
#	$NetBSD$
#	@@(#)Makefile.inc	8.3 (Berkeley) 10/24/94

.PATH: ${.CURDIR}/misc

# constructor
SRCS+=	initfini.c

# for -fstack-protector
SRCS+=	stack_protector.c
@


