Commit Graph

51 Commits

Author SHA1 Message Date
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
mycroft
4462053ab3 Fill in missing (default) mmap(2) flags. 1998-02-20 09:27:18 +00:00
cgd
10cc9f3b70 RCS Id police 1998-01-05 22:00:34 +00:00
thorpej
c46d775b91 Document new flags and internal processing of ld.so.conf changes. 1997-08-27 06:43:07 +00:00
thorpej
c48a53ac99 Enhancements from Jim Bernard <jbernard@tater.mines.edu>, to support
processing of /etc/ld.so.conf in ld.so itself (rather than in /etc/rc):
- added do_conf function and call to it in main to implement internal
  processing of /etc/ld.so.conf
- moved maintenance of dir_list to dodir, with an added argument to
  dodir to specify whether dir_list should be updated
- added option '-c' to suppress processing of /etc/ld.so.conf
- added option '-S' to suppress processing of std directories (but not
  /etc/ld.so.conf)
- modified option -s to suppress processing of _both_ std directories
  and /etc/ld.so.conf (i.e., it is equivalent to -cS)--this was done
  so that users and scripts that interpret -s as meaning "process
  only directories specified on the command line" would not be
  startled

From PR #4031.  One change was not committed, since it was unnecessary
(option variables are in the BSS, and do not need to be initialized to
0 explicitly).

Plus one change from me:
- getopt() returns -1 when completed, not EOF.
1997-08-26 19:29:57 +00:00
mrg
586ed80911 install all man pages. 1997-06-23 13:25:41 +00:00
christos
d3d1227320 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
1997-04-16 16:49:28 +00:00
christos
b4f53dbf7c mktemp() -> mkstemp() 1997-04-16 16:46:28 +00:00
mrg
b904481502 xref ld.so.conf.5 1997-01-05 12:07:53 +00:00
mikel
dd40c6d884 eliminate valueless return from main(); PR bin/3073. 1997-01-03 07:10:52 +00:00
thorpej
648aed921f RCS id police. 1996-07-03 03:28:09 +00:00
jtc
e6f7d4e4c5 Add '-m' to usage string; Fixes PR #2580 1996-06-30 22:30:32 +00:00
pk
d6193ea4d4 Create v.2 hint files.
Note: don't bother to understand v.1 files..
1996-01-09 00:04:35 +00:00
pk
c94617858b Just use umask(0);
Use mktemp() for temporary file creation.
1995-08-25 11:35:35 +00:00
pk
4edc2f666b Ensure the hints file is readable. 1995-08-25 10:10:15 +00:00
pk
8920da128d Parse library names better; takes care of PR#1291 1995-08-05 00:16:36 +00:00
pk
d8f640e15a Add a `merge' option.
Use err() & warn().
1995-06-20 23:12:33 +00:00
cgd
671d2abce5 complete remove special search dirs, use NetBSD Id tag. 1995-03-06 04:24:41 +00:00
cgd
c4c01d75b2 specify man pages the new way. 1994-12-22 09:31:26 +00:00
pk
6f591a0e01 copyright notice. 1994-06-24 13:34:04 +00:00
pk
d64d286b35 Update man page.
Use `__progname'.
1994-06-16 13:38:27 +00:00
pk
a43fd7b3a2 Conversion to err()/warn() for error reports. 1994-06-10 15:16:32 +00:00
cgd
95d6a185be no more MAP_FILE 1994-03-28 02:07:04 +00:00
jtc
fc1d8f3bac Fix spelling error in Copyright notice 1994-01-29 01:54:01 +00:00
pk
64075b6a06 Remove reference to `mywrite()'. 1994-01-28 20:53:25 +00:00
pk
14c0d3cb5e Don't barf if builtin directories happen to be non-existent. 1994-01-13 19:35:38 +00:00
mycroft
a09abb4d2b Minor cleanup. 1993-12-10 05:10:22 +00:00
mycroft
8363f8736d Use MACHINE_ARCH. 1993-12-08 11:47:17 +00:00
pk
efa4a5a7aa *** empty log message *** 1993-12-08 10:16:08 +00:00
cgd
1d330d5df9 MACHINE_ARCH support 1993-12-05 00:49:23 +00:00
mycroft
a284fbc30e Remove ${DESTDIR} from BINDIR. 1993-12-02 07:21:19 +00:00
cgd
c12bc1839f add -static to 'LDFLAGS', as it goes in /sbin 1993-11-03 05:20:49 +00:00