Commit Graph

82 Commits

Author SHA1 Message Date
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
matt
625db931b8 Use MACHINE_CPU with m68k (m68000 will not be matched due to MKPIC=no) 2013-07-18 21:59:46 +00:00
matt
2f0a3a2017 There are other little endian arm machine_arches other than "arm" 2013-02-05 07:22:59 +00:00
joerg
067600c8cf Revert last, it breaks the tricks xsrc uses. 2012-08-23 21:21:14 +00:00
joerg
8e96262375 Remove SHLIBINSTALLDIR and SHLINKINSTALLLIBDIR. Add rpath entries, if
SHLIBDIR differs from /usr/lib.
2012-08-23 15:45:02 +00:00
he
1afead990d Convert from K&R to c89 function definitions. 2012-03-21 16:11:26 +00:00
wiz
23f77c56dc Fix file descriptor leak. Found by cppcheck. 2011-01-04 23:31:29 +00:00
mrg
4c92852a80 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
2010-07-06 05:59:50 +00:00
tnozaki
50eb6aadde cast isblank(3)'s argument to unsigned char. 2010-05-13 17:52:11 +00:00
martin
c69e3f0a0e Add <sys/exec_aout.h> includes 2009-08-16 18:01:49 +00:00
lukem
be0c43535f fix sign-compare issues 2009-03-17 00:52:47 +00:00
mrg
9b0170606d make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
maybe all mips and all arm as well.
2008-10-31 20:24:51 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos
3c0ef79b7f Coverity CID 2766: Don't leak memory. 2006-03-26 23:06:45 +00:00
christos
b771b70f76 Coverity CID 1601: Fix memory leak. 2006-03-21 21:43:03 +00:00
christos
22eda87ac9 Coverity CID 1603: Fix memory leak. 2006-03-21 21:41:00 +00:00
lukem
9a1b8a3b7b appease gcc -Wuninitialized 2005-06-02 00:01:47 +00:00
xtraeme
b64027cd07 Kill __P(), use ANSI function declarations. 2005-02-05 14:33:50 +00:00
dsl
4b6e82d128 Add (unsigned char) cast to isdigit call 2004-10-28 20:17:19 +00:00
jmmv
b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc
c2a3b5ec84 Add NetBSD RCS Ids. 2003-06-23 11:53:35 +00:00
kristerw
84b199e7d9 Correct length of a memcpy.
From Alan Barrett in PR 18620.
2003-01-05 22:28:41 +00:00
itohy
cbb1f0fb0f MKDYNAMICROOT for a.out 2002-11-12 14:33:48 +00:00
wiz
2fb4b1db52 New sentence, new line. By Robert Elz with minimal fixes. 2002-10-01 13:40:23 +00:00
lukem
7360d7b6ae Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 10:16:51 +00:00
matt
838ad806e7 Also build ldconfig is MACHINE_ARCH is arm or vax buf OBJECT_FMT=ELF 2002-02-24 03:18:44 +00:00
wiz
0c8436d425 Sort sections, use standard headers, slight markup improvement. 2001-11-16 11:37:40 +00:00
lukem
4475e1747e fix a couple of -Wshadow warnings 2001-11-01 07:31:22 +00:00
tsutsui
4dc9a92b20 Make and install ldconfig on ELF m68k ports. 2001-03-21 14:54:39 +00:00
cgd
8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
enami
d86faab485 Cosmetic change; actually split a line which looks like as if two lines. 2000-11-10 03:12:45 +00:00
bjh21
162b0b6410 Miscellaneous -mdoc cleanups. 2000-10-08 09:53:00 +00:00
bjh21
30ee56ec59 Mention that ldconfig is a.out only.
Should fix PR bin/10299.
2000-10-08 09:33:13 +00:00
fvdl
00a8c99503 Modification to previous: only build for ports that are a.out or used
to be a.out. No sense in building for ports that never were a.out.
2000-09-29 19:00:59 +00:00
fvdl
989e0d2613 Build this on ELF as well. When on an ELF system, only look in
_PATH_EMUL_AOUT/etc/ld.so.conf.
2000-09-29 17:47:52 +00:00
matt
1d7db13f9f make ldconfig.c not always fail. 2000-06-01 18:17:06 +00:00
matt
7e083f3d75 Add some code to test libraries to make sure they are a.out before adding
them to hints.
2000-05-27 17:06:34 +00:00
matt
03e56c691e Changes to put the COMPAT_AOUT code into ld.aout_so. Search <dir> for <lib>
then search /emul/aout/<dir> for <lib>.  To make sure we don't get false
postives on ELF libraries we make the .so is a ZMAGIC dynamic library.
2000-05-27 06:53:29 +00:00
christos
ea4e0f4bc9 - don't core-dump if hints file is too short
- unmap the space and close fd's
- bcopy -> memcpy
- stat the file to get the size to map, instead of doing multiple mmaps.
1999-07-16 22:23:29 +00:00
thorpej
3787c5c3d8 MAP_COPY -> MAP_PRIVATE 1999-06-17 21:09:47 +00:00
agc
51ec106561 Plug a file descriptor leak. 1999-04-09 07:29:43 +00:00
drochner
d55756227f !silent -> verbose, to make it compile again (there is no "silent") 1999-04-08 19:19:57 +00:00
agc
92003e043a If there is no /etc/ld.so.conf, it is not a fatal error. Correct the return
value from the function so that the exit value to the shell is correct.
1999-04-08 13:27:38 +00:00
msaitoh
9a58d580cd Add note about LD_PRELOAD 1999-02-22 23:07:16 +00:00
thorpej
6f35df7bfe Only build ldconfig on a.out platforms. Everyone else still builds the
manual page.
1998-12-17 22:23:44 +00:00
pk
abccd09fe5 Adapt to new location in `src/sbin'. 1998-12-15 22:49:42 +00:00
pk
fc2f406a64 Pull in proper headers; deal with compiler warnings; miscelleneous KNF. 1998-12-15 22:27:14 +00:00
pk
0a97faa040 Assign my copyrights to TNF. 1998-09-05 13:08:38 +00:00
cgd
8aaf609a0a allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf 1998-03-02 19:42:25 +00:00