head	1.26;
access;
symbols
	perseant-exfatfs-base-20250801:1.26
	perseant-exfatfs-base-20240630:1.26
	cjep_sun2x:1.26.0.44
	cjep_sun2x-base:1.26
	cjep_staticlib_x-base1:1.26
	cjep_staticlib_x:1.26.0.42
	cjep_staticlib_x-base:1.26
	phil-wifi-20200421:1.26
	phil-wifi-20200411:1.26
	phil-wifi-20200406:1.26
	pgoyette-compat-merge-20190127:1.26
	pgoyette-compat-20190127:1.26
	pgoyette-compat-20190118:1.26
	pgoyette-compat-1226:1.26
	pgoyette-compat-1126:1.26
	pgoyette-compat-1020:1.26
	pgoyette-compat-0930:1.26
	pgoyette-compat-0906:1.26
	pgoyette-compat-0728:1.26
	pgoyette-compat-0625:1.26
	pgoyette-compat-0521:1.26
	pgoyette-compat-0502:1.26
	pgoyette-compat-0422:1.26
	pgoyette-compat-0415:1.26
	pgoyette-compat-0407:1.26
	pgoyette-compat-0330:1.26
	pgoyette-compat-0322:1.26
	pgoyette-compat-0315:1.26
	pgoyette-compat:1.26.0.40
	pgoyette-compat-base:1.26
	perseant-stdc-iso10646:1.26.0.38
	perseant-stdc-iso10646-base:1.26
	prg-localcount2-base3:1.26
	prg-localcount2-base2:1.26
	prg-localcount2-base1:1.26
	prg-localcount2:1.26.0.36
	prg-localcount2-base:1.26
	pgoyette-localcount-20170426:1.26
	bouyer-socketcan-base1:1.26
	pgoyette-localcount-20170320:1.26
	bouyer-socketcan:1.26.0.34
	bouyer-socketcan-base:1.26
	pgoyette-localcount-20170107:1.26
	pgoyette-localcount-20161104:1.26
	localcount-20160914:1.26
	pgoyette-localcount-20160806:1.26
	pgoyette-localcount-20160726:1.26
	pgoyette-localcount:1.26.0.32
	pgoyette-localcount-base:1.26
	netbsd-5-2-3-RELEASE:1.26
	netbsd-5-1-5-RELEASE:1.26
	yamt-pagecache-base9:1.26
	yamt-pagecache-tag8:1.26
	tls-earlyentropy:1.26.0.28
	tls-earlyentropy-base:1.26
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.26
	riastradh-drm2-base3:1.26
	netbsd-5-2-2-RELEASE:1.26
	netbsd-5-1-4-RELEASE:1.26
	netbsd-5-2-1-RELEASE:1.26
	netbsd-5-1-3-RELEASE:1.26
	agc-symver:1.26.0.30
	agc-symver-base:1.26
	tls-maxphys-base:1.26
	yamt-pagecache-base8:1.26
	netbsd-5-2:1.26.0.26
	yamt-pagecache-base7:1.26
	netbsd-5-2-RELEASE:1.26
	netbsd-5-2-RC1:1.26
	yamt-pagecache-base6:1.26
	yamt-pagecache-base5:1.26
	yamt-pagecache-base4:1.26
	netbsd-5-1-2-RELEASE:1.26
	netbsd-5-1-1-RELEASE:1.26
	yamt-pagecache-base3:1.26
	yamt-pagecache-base2:1.26
	yamt-pagecache:1.26.0.24
	yamt-pagecache-base:1.26
	bouyer-quota2-nbase:1.26
	bouyer-quota2:1.26.0.22
	bouyer-quota2-base:1.26
	matt-nb5-pq3:1.26.0.20
	matt-nb5-pq3-base:1.26
	netbsd-5-1:1.26.0.18
	netbsd-5-1-RELEASE:1.26
	netbsd-5-1-RC4:1.26
	netbsd-5-1-RC3:1.26
	netbsd-5-1-RC2:1.26
	netbsd-5-1-RC1:1.26
	netbsd-5-0-2-RELEASE:1.26
	netbsd-5-0-1-RELEASE:1.26
	jym-xensuspend-nbase:1.26
	netbsd-5-0:1.26.0.16
	netbsd-5-0-RELEASE:1.26
	netbsd-5-0-RC4:1.26
	netbsd-5-0-RC3:1.26
	netbsd-5-0-RC2:1.26
	jym-xensuspend:1.26.0.14
	jym-xensuspend-base:1.26
	netbsd-5-0-RC1:1.26
	netbsd-5:1.26.0.12
	netbsd-5-base:1.26
	mjf-devfs2:1.26.0.10
	mjf-devfs2-base:1.26
	yamt-pf42-base4:1.26
	yamt-pf42-base3:1.26
	hpcarm-cleanup-nbase:1.26
	yamt-pf42-base2:1.26
	yamt-pf42:1.26.0.8
	yamt-pf42-base:1.26
	keiichi-mipv6:1.26.0.6
	keiichi-mipv6-base:1.26
	cube-autoconf:1.26.0.4
	cube-autoconf-base:1.26
	hpcarm-cleanup:1.26.0.2
	hpcarm-cleanup-base:1.26
	netbsd-1-3-PATCH003:1.21.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.21.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.21.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.21.2.1
	ARM32-BROKEN-RELOCS:1.23.0.2
	netbsd-1-3-PATCH002:1.21.2.1
	netbsd-1-3-PATCH001:1.21.2.1
	netbsd-1-3-RELEASE:1.21.2.1
	netbsd-1-3-BETA:1.21.2.1
	netbsd-1-3:1.21.0.2
	netbsd-1-3-base:1.21
	cjs-build-against-obj-dir:1.18.0.2
	netbsd-1-2-PATCH001:1.12
	netbsd-1-2-RELEASE:1.12
	netbsd-1-2-BETA:1.12
	netbsd-1-2-base:1.12
	netbsd-1-2:1.12.0.4
	netbsd-1-1-PATCH001:1.11
	netbsd-1-1-RELEASE:1.11
	netbsd-1-1:1.11.0.2
	netbsd-1-1-base:1.11
	netbsd-1-0-PATCH06:1.8
	netbsd-1-0-PATCH05:1.8
	netbsd-1-0-PATCH04:1.8
	netbsd-1-0-PATCH03:1.8
	netbsd-1-0-PATCH02:1.8
	netbsd-1-0-PATCH1:1.8
	netbsd-1-0-PATCH0:1.8
	netbsd-1-0-RELEASE:1.8
	netbsd-1-0:1.8.0.2
	netbsd-1-0-base:1.8;
locks; strict;
comment	@# @;


1.26
date	98.12.17.11.50.58;	author pk;	state dead;
branches;
next	1.25;

1.25
date	98.08.13.07.34.06;	author mycroft;	state Exp;
branches;
next	1.24;

1.24
date	98.07.25.12.37.27;	author mycroft;	state Exp;
branches;
next	1.23;

1.23
date	98.05.21.00.31.05;	author tv;	state Exp;
branches;
next	1.22;

1.22
date	97.10.25.10.12.46;	author lukem;	state Exp;
branches;
next	1.21;

1.21
date	97.07.14.02.56.54;	author christos;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	97.06.23.13.25.58;	author mrg;	state Exp;
branches;
next	1.19;

1.19
date	97.05.31.21.21.37;	author cjs;	state Exp;
branches;
next	1.18;

1.18
date	97.05.30.14.06.34;	author cjs;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	97.05.30.11.39.01;	author veego;	state Exp;
branches;
next	1.16;

1.16
date	97.04.16.16.49.43;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	97.03.24.22.06.36;	author christos;	state Exp;
branches;
next	1.14;

1.14
date	96.12.23.22.13.03;	author pk;	state Exp;
branches;
next	1.13;

1.13
date	96.06.08.22.22.26;	author pk;	state Exp;
branches;
next	1.12;

1.12
date	96.01.02.08.54.28;	author thorpej;	state Exp;
branches;
next	1.11;

1.11
date	95.10.09.00.11.24;	author pk;	state Exp;
branches;
next	1.10;

1.10
date	95.08.25.10.08.45;	author pk;	state Exp;
branches;
next	1.9;

1.9
date	94.09.19.04.49.02;	author mycroft;	state Exp;
branches;
next	1.8;

1.8
date	94.01.28.21.01.20;	author pk;	state Exp;
branches;
next	1.7;

1.7
date	93.12.10.05.10.30;	author mycroft;	state Exp;
branches;
next	1.6;

1.6
date	93.12.08.11.47.31;	author mycroft;	state Exp;
branches;
next	1.5;

1.5
date	93.12.08.10.28.05;	author pk;	state Exp;
branches;
next	1.4;

1.4
date	93.12.05.00.55.26;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	93.11.08.13.20.39;	author pk;	state Exp;
branches;
next	1.2;

1.2
date	93.10.27.00.55.24;	author pk;	state Exp;
branches;
next	1.1;

1.1
date	93.10.16.21.54.08;	author pk;	state Exp;
branches;
next	;

1.21.2.1
date	97.11.08.06.54.12;	author lukem;	state Exp;
branches;
next	;

1.18.2.1
date	97.08.02.00.03.13;	author cjs;	state Exp;
branches;
next	;


desc
@@


1.26
log
@The a.out version of ld.so now lives in `src/libexec/ld.aout_so'
@
text
@#	$NetBSD: Makefile,v 1.25 1998/08/13 07:34:06 mycroft Exp $

.if	(${MACHINE_ARCH} == "i386") || \
	(${MACHINE_ARCH} == "m68k") || \
	(${MACHINE_ARCH} == "ns32k") || \
	(${MACHINE_ARCH} == "sparc") || \
	(${MACHINE_ARCH} == "vax") || \
	(${MACHINE_ARCH} == "arm32")
PROG=	ld.so
SRCS=	mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
CLIB=	${.CURDIR}/../../../../lib/libc
CLIBOBJ!=cd ${CLIB}; \
	 printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
PICFLAG=-fpic -fno-function-cse
CPPFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
.if defined(DEBUG)
CPPFLAGS+=-DDEBUG
.endif
ASFLAGS+=-k
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic -L${CLIBOBJ}
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
.endif
LDADD+=	-lc_pic
DPADD+=	${LIBC_PIC}
BINDIR= /usr/libexec
HDRS=	link.h
INCS=${HDRS}
INCSDIR=/usr/include

.PATH: ${CLIB}/stdio

$(PROG):
	$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)

.S.o:
	${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
.endif

MAN= rtld.1
MLINKS=	rtld.1 ld.so.1

.include <bsd.prog.mk>
@


1.25
log
@Small changes to make debugging a little easier.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 1998/07/25 12:37:27 mycroft Exp $
@


1.24
log
@Remove bogus change to use -O0.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 1998/05/21 00:31:05 tv Exp $
d16 3
@


1.23
log
@In case NOPICINSTALL is set, get -lc_pic from src/lib/libc/(objdirname).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1997/10/25 10:12:46 lukem Exp $
d14 1
a14 1
PICFLAG=-fpic -fno-function-cse -O0
@


1.22
log
@use CPPFLAGS instead of CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 1997/07/14 02:56:54 christos Exp $
d12 3
a14 1
PICFLAG=-fpic -fno-function-cse
d17 1
a17 1
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
@


1.21
log
@Add the necessary -I flag to pick up the libc/include/extern.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 1997/06/23 13:25:58 mrg Exp $
d13 1
a13 1
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
@


1.21.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1997/10/25 10:12:46 lukem Exp $
d13 1
a13 1
CPPFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
@


1.20
log
@install all man pages.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1997/05/31 21:21:37 cjs Exp $
d11 1
d13 1
a13 1
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS
d26 1
a26 1
.PATH: ${.CURDIR}/../../../../lib/libc/stdio
@


1.19
log
@Back out BUILDDIR and NOINSTALL changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1997/04/16 16:49:43 christos Exp $
d3 6
a10 1
MAN= rtld.1
a21 1
MLINKS=	rtld.1 ld.so.1
d32 4
@


1.18
log
@Remove an ifdef. Add comment about -nostdlib vs. ELF ld.
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.17 1997/05/30 11:39:01 veego Exp $

.include <bsd.own.mk>	# for BUILDDIR
d10 2
a11 4
# XXX The ELF ports do not currently use this ld.so, so we don't have to
# worry about their linker not accepting -nostdlib.
.if defined(BUILDDIR)
LDFLAGS+= -nostdlib -L${BUILDDIR}/usr/lib
@


1.18.2.1
log
@update to 1.21
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.21 1997/07/14 02:56:54 christos Exp $
a4 6
.if	(${MACHINE_ARCH} == "i386") || \
	(${MACHINE_ARCH} == "m68k") || \
	(${MACHINE_ARCH} == "ns32k") || \
	(${MACHINE_ARCH} == "sparc") || \
	(${MACHINE_ARCH} == "vax") || \
	(${MACHINE_ARCH} == "arm32")
d7 1
a7 1
CLIB=	${.CURDIR}/../../../../lib/libc
d9 1
a9 1
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
d21 1
d25 1
a25 1
.PATH: ${CLIB}/stdio
a31 4
.endif

MAN= rtld.1
MLINKS=	rtld.1 ld.so.1
@


1.17
log
@Use the extra LDFLAGS if OBJDIR is defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1997/04/16 16:49:43 christos Exp $
d3 1
a3 1
.include <bsd.own.mk>	# for OBJDIR and BUILDDIR
d12 3
a14 1
.if defined(OBJDIR)
a15 3
.else
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
a16 1
.endif	# defined(OBJDIR)
@


1.16
log
@Ld directory reorganization:
	- separate out the common files used by rtld ldd ld
	- move machine dependent files into arch
	- move ld in its own directory
	- factor out .PATH and CFLAGS common to all Makefiles
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.15 1997/03/24 22:06:36 christos Exp $
d12 3
d18 1
@


1.15
log
@Makefile cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1996/12/23 22:13:03 pk Exp $
a5 1
LDDIR?= $(.CURDIR)/..
d7 1
a7 1
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD -DLIBC_SCCS
d21 1
a21 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH) ${.CURDIR}/../../../../lib/libc/stdio
@


1.14
log
@<link.h> has moved in with the run-time linker source.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1996/06/08 22:22:26 pk Exp $
d15 1
d19 2
a28 9

includes:
	@@cd ${.CURDIR}; for i in $(HDRS); do \
	    j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
		${DESTDIR}/usr/include"; \
	    echo $$j; \
	    eval "$$j"; \
	done
@


1.13
log
@Use DESTDIR to point at libraries like bsd.prog.mk does (PR#2524).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1996/01/02 08:54:28 thorpej Exp $
d16 1
d26 9
@


1.12
log
@Add -fno-function-cse to PICFLAGS.  Without it, Very Bad Things happen
when ld.so is compiled with gcc 2.7.2 on the m68k.  From
Niklas Hallqvist <niklas@@appli.se> in PR #1557.  (Thanks, Nik, for reminding
me about this PR...)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1995/10/09 00:11:24 pk Exp $
a4 1
#NOMAN=	noman
a6 1
#PICFLAG=-pic
d9 1
d11 3
a13 1
ASFLAGS+=-k
@


1.11
log
@New style RCS IDs.
@
text
@d1 1
a1 1
#	$NetBSD$
d9 1
a9 1
PICFLAG=-fpic
@


1.10
log
@Install the manual page.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.9 1994/09/19 04:49:02 mycroft Exp $
@


1.9
log
@Shrink ld.so by 12k.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1994/01/28 21:01:20 pk Exp $
d5 2
a6 1
NOMAN=	noman
d15 1
@


1.8
log
@Use somewhat customized version of malloc, in stead of relying on  a
crummy sbrk() backend; proper aligment must be guaranteed on all archs.
Drafting dlopen, dlsym, et.al.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1993/12/10 05:10:30 mycroft Exp $
d4 1
a4 1
SRCS=	mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
d9 1
a9 1
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD
d15 1
a15 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH)
@


1.7
log
@Minor cleanup.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1993/12/08 11:47:31 mycroft Exp $
d4 1
a4 1
SRCS=	mdprologue.S rtld.c sbrk.c shlib.c etc.c md.c
@


1.6
log
@Use MACHINE_ARCH.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.5 1993/12/08 10:28:05 pk Exp $
d9 4
a12 3
CFLAGS += -I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) -O $(PICFLAG) -DRTLD
LDFLAGS = -Bshareable -Bsymbolic -assert nosymbolic
LIBS =  -lc_pic
a16 2
.SUFFIXES: .S

d18 1
a18 1
	$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS) $(LDADD)
d21 1
a21 1
	$(CPP) $(.IMPSRC) | $(AS) -k -o $(.TARGET) -
@


1.5
log
@Parcelled out the heap allocator into separate file.
Changes prototype for findshlib() (corrected library search order for ld).
@
text
@d1 1
a1 1
#	$Id$
d14 1
a14 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
@


1.4
log
@MACHINE_ARCH support
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1993/11/08 13:20:39 pk Exp $
d4 1
a4 1
SRCS=	mdprologue.S rtld.c shlib.c etc.c md.c
d9 1
a9 2
CFLAGS += -I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) -O $(PICFLAG) \
	-DRTLD
d14 1
a14 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH)
@


1.3
log
@Use strsep() in stead of strtok() and restore colons in eg. env. vars.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1993/10/27 00:55:24 pk Exp $
d9 2
a10 1
CFLAGS += -I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE) -O $(PICFLAG) -DRTLD
d15 1
a15 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
@


1.2
log
@-Bshareable added to CFLAGS.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1993/10/16 21:54:08 pk Exp $
d19 1
a19 1
	$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
@


1.1
log
@A linker supporting shared libraries (run-time part).
@
text
@d1 1
a1 1
#	$Id$
d10 1
a10 1
LDFLAGS = -Bsymbolic -assert nosymbolic
@
