Home | History | Annotate | Download | only in ld.aout_so
History log of /src/libexec/ld.aout_so/Makefile
RevisionDateAuthorComments
 1.51  18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.50  18-Jul-2013  matt Use ${MACHINE_CPU} for m68k
 1.49  05-Feb-2013  martin branches: 1.49.2;
Make sure UUDECODE_FILES is empty if we do not have an old ld.so_aout
(on architectures that never used a.out)
 1.48  05-Feb-2013  matt There are other little endian arm machine_arches other than "arm"
 1.47  06-Jul-2010  mrg branches: 1.47.6; 1.47.12;
remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.46  31-Oct-2008  mrg make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
maybe all mips and all arm as well.
 1.45  19-Mar-2004  jmc branches: 1.45.38;
Convert to usage of UUDECODE_FILES and standardize on filename extension
 1.44  21-Oct-2003  lukem Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
 1.43  19-Oct-2003  lukem rework to use the newer _MKMSGCREATE (et al) macros
 1.42  19-Oct-2003  lukem support MAKEVERBOSE
 1.41  10-Jul-2003  lukem Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
 1.40  12-Nov-2002  itohy MKDYNAMICROOT for a.out
 1.39  19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
 1.38  24-Apr-2002  lukem - in <bsd.files.mk>, don't clear FILES after using it, as that prevents
make -V FILES
from being useful (and given that every other variable can be
extracted using make -V, the behaviour was unusually inconsistent
given that the original reason for clearing it doesn't seem to be
relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
(and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
 1.37  29-Mar-2002  matt Add support for a VAX ld.so when VAX is ELF
 1.36  05-Mar-2002  thorpej Use ${PRINTOBJDIR}.
 1.35  06-Feb-2002  thorpej MACHINE_ARCH for ELF ARM platforms is "arm", not "arm32".
 1.34  31-Jan-2002  tv Make it possible for uudecode to be a host tool.
 1.33  22-Jan-2002  skrll Add a uuencoded binary of a.out arm32 ld.so and update Makefile to extract
on ELF platforms.

This file was created using the following revisions:

ld.h,v 1.2 1998/12/17 23:36:38 pk
malloc.c,v 1.7 2000/11/28 06:01:34 mycroft
rtld.c,v 1.82 2001/09/20 20:55:29 wiz
shlib.c,v 1.18 2000/05/27 06:53:30 matt
shlib.h,v 1.1 1998/12/15 23:16:14 pk

arm32 specific files:

md-static-funcs.c,v 1.1 1997/10/17 21:25:42 mark
md.c,v 1.11 1999/02/27 03:34:05 tv
md.h,v 1.4 2000/05/28 01:53:05 matt
mdprologue.S,v 1.1 1997/10/17 21:25:59 mark
 1.32  06-May-2001  wiz Rename rtld.1 to ld.aout_so.1, since it only describes ld.so for a.out.
 1.31  18-Apr-2001  tsutsui Add a uuencoded binary of a.out m68k ld.so.
Created using following revisions in 1.5.1_BETA source tree:
ld.h,v 1.2 1998/12/17 23:36:38 pk
malloc.c,v 1.6.8.1 2001/04/06 09:39:23 he
rtld.c,v 1.76.4.2 2001/04/06 09:39:43 he
shlib.c,v 1.18 2000/05/27 06:53:30 matt
shlib.h,v 1.1 1998/12/15 23:16:14 pk
m68k specific files:
md-static-funcs.c,v 1.4 1998/01/05 22:00:38 cgd
md.c,v 1.16 1999/04/12 00:52:44 gwr
md.h,v 1.9 2000/05/28 01:53:09 matt
mdprologue.S,v 1.8 1998/01/05 22:00:40 cgd
 1.30  12-Sep-2000  tron - Add "dependall" target so that "make build" will really uudecode the
"ld.so" binaries for i386 and sparc.
- Remove bogus "${DESTDIR}/" from "FILESDIR".
 1.29  11-Sep-2000  fvdl Add uuencoded binaries for a.out dynamic loaders on i386 and sparc,
who are ELF now. Needed because cross-building them is still a
problem. These loaders will try /emul/aout first, but do not
have the baggage that COMPAT_AOUT has.
 1.28  19-Mar-1999  thorpej branches: 1.28.10;
Move the link.h files for the different shlib formats via repository copy,
and rename them to match the executable format. Introduce a new link.h
file which automatically picks the correct header based on the target of
the toolchain.
 1.27  09-Feb-1999  christos Build depending on OBJECT_FMT not a list of MACHINE_ARCH's
 1.26  17-Dec-1998  pk * Add header file containing definitions shared among all a.out
linker related utilities.
* Adjust makefile to new location in `src/libexec'
* Have rtld.c use the new shlib.h and ld.h headers.
 1.25  13-Aug-1998  mycroft Small changes to make debugging a little easier.
 1.24  25-Jul-1998  mycroft Remove bogus change to use -O0.
 1.23  21-May-1998  tv In case NOPICINSTALL is set, get -lc_pic from src/lib/libc/(objdirname).
 1.22  25-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.21  14-Jul-1997  christos branches: 1.21.2;
Add the necessary -I flag to pick up the libc/include/extern.h
 1.20  23-Jun-1997  mrg install all man pages.
 1.19  31-May-1997  cjs Back out BUILDDIR and NOINSTALL changes.
 1.18  30-May-1997  cjs branches: 1.18.2;
Remove an ifdef. Add comment about -nostdlib vs. ELF ld.
 1.17  30-May-1997  veego Use the extra LDFLAGS if OBJDIR is defined.
 1.16  16-Apr-1997  christos 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
 1.15  24-Mar-1997  christos Makefile cleanups
 1.14  23-Dec-1996  pk <link.h> has moved in with the run-time linker source.
 1.13  08-Jun-1996  pk Use DESTDIR to point at libraries like bsd.prog.mk does (PR#2524).
 1.12  02-Jan-1996  thorpej 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...)
 1.11  09-Oct-1995  pk New style RCS IDs.
 1.10  25-Aug-1995  pk Install the manual page.
 1.9  19-Sep-1994  mycroft Shrink ld.so by 12k.
 1.8  28-Jan-1994  pk 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.
 1.7  10-Dec-1993  mycroft Minor cleanup.
 1.6  08-Dec-1993  mycroft Use MACHINE_ARCH.
 1.5  08-Dec-1993  pk Parcelled out the heap allocator into separate file.
Changes prototype for findshlib() (corrected library search order for ld).
 1.4  05-Dec-1993  cgd MACHINE_ARCH support
 1.3  08-Nov-1993  pk Use strsep() in stead of strtok() and restore colons in eg. env. vars.
 1.2  27-Oct-1993  pk -Bshareable added to CFLAGS.
 1.1  16-Oct-1993  pk A linker supporting shared libraries (run-time part).
 1.18.2.1  02-Aug-1997  cjs update to 1.21
 1.21.2.1  08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.28.10.2  12-Sep-2000  tron Pull up from current (approved by thorpej):

- Add "dependall" target so that "make build" will really uudecode the
"ld.so" binaries for i386 and sparc.
- Remove bogus "${DESTDIR}/" from "FILESDIR".

basesrc/libexec/ld.aout_so/Makefile 1.29 -> 1.30
 1.28.10.1  12-Sep-2000  fvdl Bring in uuencoded, 1.4.3-built a.out ld.so binaries for i386 and
sparc from the trunk. Pull up revision 1.29 of the Makefile
to build and install them.

Approved by thorpej
 1.45.38.1  06-Nov-2008  snj branches: 1.45.38.1.4;
Pull up following revision(s) (requested by mrg in ticket #20):
compat/libexec/ld.elf_so/Makefile: revision 1.2
distrib/sets/lists/base/md.shark: revision 1.7
distrib/sets/lists/base/md.vax: revision 1.26
distrib/sets/lists/base/md.i386: revision 1.130
distrib/sets/lists/base/ad.arm: revision 1.10
distrib/sets/lists/comp/md.shark: revision 1.13
distrib/sets/lists/comp/md.sparc: revision 1.68
distrib/sets/lists/comp/ad.arm: revision 1.31
distrib/sets/lists/comp/md.vax: revision 1.35
distrib/sets/lists/comp/md.i386: revision 1.108
distrib/sets/lists/base/md.sparc: revision 1.75
distrib/sets/lists/comp/md.pmax: revision 1.59
libexec/ld.aout_so/Makefile: revision 1.46
sbin/ldconfig/Makefile: revision 1.22
make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
maybe all mips and all arm as well.
 1.45.38.1.4.1  24-Mar-2014  matt Make these work with a machine_arch of armv7
 1.47.12.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.47.12.1  25-Feb-2013  tls resync with head
 1.47.6.1  22-May-2014  yamt 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")
 1.49.2.1  23-Jul-2013  riastradh sync with HEAD

RSS XML Feed