Skip site navigation (1)Skip section navigation (2)

CVS log for src/sbin/ldconfig/ldconfig.c

[BACK] Up to [FreeBSD] / src / sbin / ldconfig

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.48.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.48.2.1: preferred, colored
Changes since revision 1.48.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.47.14.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.47.10.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.47.10.2: preferred, colored; next MAIN 1.47.12.1: preferred, colored
Changes since revision 1.47.10.2: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.47.10.2: download - view: text, markup, annotated - select for diffs
Thu Nov 25 07:02:36 2010 UTC (14 months, 2 weeks ago) by obrien
Branches: RELENG_8
CVS tags: RELENG_8_2_BP
Branch point for: RELENG_8_2
Diff to: previous 1.47.10.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.10.1: +7 -13 lines
SVN rev 215814 on 2010-11-25 07:02:36Z by obrien

MFC: r201217: ANSIfy ldconfig and the aout bits it still uses from rtld-aout

Revision 1.47.10.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.47.10.1: preferred, colored; next MAIN 1.47.10.2: preferred, colored
Changes since revision 1.47.10.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.47.12.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Dec 29 21:07:17 2009 UTC (2 years, 1 month ago) by ed
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +7 -13 lines
SVN rev 201217 on 2009-12-29 21:07:17Z by ed

ANSIfy ldconfig and the aout bits it still uses from rtld-aout.

(Why is aout support still there?)

Revision 1.47.10.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.47.10.1: preferred, colored; next MAIN 1.47.10.2: preferred, colored
Changes since revision 1.47.10.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.47.10.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_1, RELENG_8_0
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.47.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.47.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.45.2.1.8.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.45.2.1: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.1: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Jan 25 22:38:58 2007 UTC (5 years ago) by peter
Branches: MAIN
CVS tags: RELENG_8_BP, RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7
Branch point for: RELENG_8, RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +0 -1 lines
Remove unused reference to objformat.h

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 18 19:47:41 2005 UTC (6 years, 2 months ago) by jhb
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1
Branch point for: RELENG_6_4
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +1 -1 lines
Document the -32 flag and add it to usage().

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Nov 11 21:24:21 2005 UTC (6 years, 2 months ago) by jhb
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -1 lines
Document -32 flag in usage() output as well.

Requested by:	ru
MFC after:	1 week

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Feb 10 09:19:29 2005 UTC (7 years ago) by ru
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Branch point for: RELENG_6
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -1 lines
Sync program's usage() with manpage's SYNOPSIS.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Jan 14 15:49:05 2005 UTC (7 years ago) by delphij
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4 lines
Improve readability for the recently introduced changes by having
their sizeof(*p) instead of explicitlly specifying their types.

Suggested by:	nectar

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Jan 14 13:18:55 2005 UTC (7 years ago) by delphij
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +5 -5 lines
Use a better name than underscore-tmpfile for better representation
of the meaning.

Suggested by:	stefanf

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Jan 14 12:22:57 2005 UTC (7 years ago) by delphij
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +26 -21 lines
64-bit clean + WARNS=6:
	- Convert the (char *) cast+cast backs magic to
	  memcpy(3).  Without this, the resulting code
	  is potentially risky with higher optimization
	  levels.
	- Avoid same name when calling local variables,
	  as well as global symbols.  This reduces
	  confusion for both human and compiler.
	- Add necessary casts, consts
	- Use new style function defination.
	- Minor style.Makefile(5) tweak
	- Bump WARNS?= from 0 to 6

** for the aout code: changes are intentionally limited
   to ease maintaince.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Aug 14 17:46:10 2004 UTC (7 years, 5 months ago) by stefanf
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
Avoid using void pointers in additive expressions.

PR:		56653

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Mar 21 01:21:26 2004 UTC (7 years, 10 months ago) by peter
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +25 -11 lines
Add initial support for compiling a special 32 bit version of
ld-elf.so.1 on 64 bit systems.  Most of this involves using alternate
paths, environment variables and diagnostic messages.

The build glue is seperate.

Revision 1.31.2.4: download - view: text, markup, annotated - select for diffs
Tue Mar 16 07:11:07 2004 UTC (7 years, 10 months ago) by cperciva
Branches: RELENG_4
CVS tags: RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.31.2.3: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.3: +2 -2 lines
MFC rev. 1.39

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Mar 13 00:11:05 2004 UTC (7 years, 11 months ago) by cperciva
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +1 -1 lines
Fix 10 year old size-of-bcopy bug.

PR:		bin/43930
Submitted by:	Alan Barrett
Approved by:	rwatson (mentor)
MFNetBSD:	revision 1.35
MFC after:	3 days

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Sep 17 01:48:53 2002 UTC (9 years, 4 months ago) by peter
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +10 -9 lines
Initiate deorbit burn for the i386-only a.out related support.  Moves are
under way to move the remnants of the a.out toolchain to ports.  As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL.  It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Mar 21 13:14:19 2002 UTC (9 years, 10 months ago) by imp
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -7 lines
o __P removed
o main prototype removed

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Mar 20 17:55:08 2002 UTC (9 years, 10 months ago) by obrien
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
Remove 'register' keyword.
It does not help modern compilers, and some may take some hit from it.
(I also found several functions that listed *every* of its 10 local vars with
 "register" -- just how many free registers do people think machines have?)

Revision 1.31.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 11 23:59:10 2001 UTC (10 years, 7 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.31.2.2: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.2.2: +2 -2 lines
MFC: * Most of existing include/elf.h is in elf-hints.h.
       elf.h is now a compatibility header with Solaris/SVR4.
	 * Consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11 and too much clashing over
our base elf headers and the Binutils elf headers.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed May 2 23:56:19 2001 UTC (10 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
* include/elf.h has been repo copied to include/elf-hints.h, and it no
  longer includes machine/elf.h.
* consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11.0 and too much clashing over
our base elf headers and the Binutils elf headers.

Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 28 20:55:09 2001 UTC (11 years ago) by jdp
Branches: RELENG_4
CVS tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3
Diff to: previous 1.31.2.1: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.2.1: +7 -3 lines
MFC: Make ldconfig check directory ownerships and permissions for
greater security.  Add -i option to disable these checks.

Merges in the following revisions from the main branch:

    elfhints.c          1.4, 1.5, 1.6
    ldconfig.8          1.21, 1.22, 1.25
    ldconfig.c          1.33, 1.34
    ldconfig.h          1.3

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Aug 7 19:12:04 2000 UTC (11 years, 6 months ago) by jdp
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +7 -18 lines
Add a "-i" option ("insecure") which disables the checks for
root ownership, etc.  I will soon commit a companion knob for
"/etc/rc.conf".

Submitted by:	Maxime Henrion <mhenrion@cybercable.fr>

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Jul 26 04:47:17 2000 UTC (11 years, 6 months ago) by jdp
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +16 -1 lines
If a directory is world-writable or is not owned by root, skip it
and emit a warning.  This is a security measure since ldconfig
influences the shared libraries used by all programs.

I think the check should be made even more stringent by also
ignoring group-writable directories.  I will make that change soon
unless we encounter a good reason not to do it.

Submitted by:	Maxime Henrion <mhenrion@cybercable.fr>

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 18 02:24:33 2000 UTC (11 years, 6 months ago) by jdp
Branches: RELENG_4
CVS tags: RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -2 lines
MFC: Make "ldconfig" with no arguments behave the same as "ldconfig -R".

	ldconfig.8:	1.19 -> 1.20
	ldconfig.c:	1.31 -> 1.32

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Jul 9 19:12:49 2000 UTC (11 years, 7 months ago) by jdp
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -2 lines
Make "ldconfig" with no arguments behave the same as "ldconfig -R".

Submitted by:	Maxime Henrion <mhenrion@cybercable.fr>

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Jan 16 21:08:58 2000 UTC (12 years ago) by kris
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -9 lines
Fix insecure tempfile handling

Reviewed by:	audit@freebsd.org

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 15:14:02 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:13:21 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Apr 21 20:06:42 1999 UTC (12 years, 9 months ago) by billf
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
Make usage() reflect reality (add the -aout and -elf options).

OK'd by:	bde

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Sep 9 01:21:24 1998 UTC (13 years, 5 months ago) by jdp
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE, RELENG_3_0_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +15 -72 lines
Add a new library function getobjformat().  It checks all the
standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an
indication of the user's preferred object file format.  This
consolidates some code that was starting to be duplicated in more
and more places.

Use the new function in ldconfig.

Note: I don't think that gcc should use getobjformat(), even though
it could.  The compiler should limit itself to functions that are
widespread, to ease porting and cross-compilation.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Sep 6 20:43:25 1998 UTC (13 years, 5 months ago) by jdp
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -11 lines
Fix calls to mmap.  It returns void *, and on failure it returns
MAP_FAILED.

Don't try to extend the mapping in place if it is too short.
There's no guarantee it will be possible.  Remap the file instead.

Put in a few style fixes.

Submitted by:	Bruce Evans <bde>

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Sep 5 16:20:15 1998 UTC (13 years, 5 months ago) by jdp
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -1 lines
For a.out mode, ignore shared libraries that don't have at least 2
version numbers.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Sep 5 03:30:54 1998 UTC (13 years, 5 months ago) by jdp
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +92 -9 lines
Implement ldconfig functionality for ELF.  The hints are stored in
a different file than the a.out hints, namely, "/var/run/ld-elf.so.hints".
These hints consist only of the directory search path.  There is
no hash table as in the a.out hints, because ELF doesn't have to
search for the file with the highest minor version number.  (It
doesn't have minor version numbers at all.)

A single run of ldconfig updates either the a.out hints or the ELF
hints, but not both.  The set of hints to process is selected in
the usual way, via /etc/objformat, or ${OBJFORMAT}, or the "-aout"
or "-elf" command line option.  The rationale is that you probably
want to search different directories for ELF than for a.out.

"ldconfig -r" is faked up to produce output like we are used to,
except that for ELF there are no minor version numbers.  This should
enable "ldconfig -r" to be used for checking LIB_DEPENDS in ports
even for ELF.

I implemented the ELF functionality in a new source file, with an
eye toward eliminating the a.out code entirely at some point in
the future.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Aug 2 16:06:33 1998 UTC (13 years, 6 months ago) by bde
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -4 lines
Fixed printf format errors.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jul 6 07:02:26 1998 UTC (13 years, 7 months ago) by charnier
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +27 -23 lines
Add rcsid. remove unused #includes. Getopt returns -1 not EOF. Add usage().
Cosmetics in err(3) string.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Jun 28 19:34:10 1998 UTC (13 years, 7 months ago) by bde
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -4 lines
Fixed printf format errors.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue May 26 20:12:50 1998 UTC (13 years, 8 months ago) by sos
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -2 lines
ELF preparation step 2:

Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...

Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Thu Dec 25 07:57:43 1997 UTC (14 years, 1 month ago) by jkh
Diff to: previous 1.15.2.2: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.2: +19 -10 lines
MFC: -R support for ports collection.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Aug 22 04:42:12 1997 UTC (14 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +19 -10 lines
Add -R (rescan or refresh) option to rescan and rebuild the hints
file based on the previous list of directories stored there which
should overcome a weakness of the '-m' switch which can only add
libs.  This is an ideal way of updating the hints list after adding
or removing a shlib since it will remove entries that are gone and
doesn't need to have all the directories spelled out each time.
(eg: rm -f /usr/lib/libtcl75*; ldconfig -R)  This only works for
version 2 hints files (which we've been generating for a year or
so) which store the path.

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 8 02:18:10 1997 UTC (14 years, 6 months ago) by jdp
Diff to: previous 1.15.2.1: preferred, colored
Changes since revision 1.15.2.1: +57 -6 lines
Sync with -current.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Jul 11 14:45:41 1997 UTC (14 years, 7 months ago) by jkh
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +57 -6 lines
Allow ldconfig to accept files (containing directory paths) as well as
directory paths.
Reviewed by:	jkh & jdp
Submitted by:	Hans Zuidam <hans@brandinnovators.com>

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Feb 22 15:46:38 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -1 lines
Revert $FreeBSD$ to $Id$

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jan 14 05:58:05 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -1 lines
Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.

Revision 1.9.4.4: download - view: text, markup, annotated - select for diffs
Thu Jan 2 16:44:17 1997 UTC (15 years, 1 month ago) by jdp
Diff to: previous 1.9.4.3: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.3: +5 -3 lines
Merge from main branch 1.12 -> 1.13:  Fix -Wall warnings and garbage
exit status.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 8 23:20:38 1996 UTC (15 years, 3 months ago) by joerg
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +13 -5 lines
Merge from rev 1.16: fix the ldconfig handling for non-existant
directories.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Nov 8 02:12:40 1996 UTC (15 years, 3 months ago) by jdp
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +13 -5 lines
Fixed a bug in the handling of the directories in the search path
that is stored in the hints file.  If that search path contained
a non-existent directory (one, say, that had been removed), and
"ldconfig -m /a/perfectly/good/directory" was run, ldconfig returned
an error status without printing an error message.  This caused
some confusing bombs when installing ports, in particular.

I changed it so that non-existent directories from the stored search
path are silently ignored.  Only non-existent directories named
explicitly on the command line are treated as errors.  Also, a
diagnostic is printed if and only if an error status is returned.

In an unrelated fix, ldconfig now silently ignores any directories
named on the command line when the "-r" option is given.  Formerly,
these directories incorrectly made their way into the "search
directories" line of the listing.  It really should be an error to
specify directories together with "-r", but I don't have time to
fix the manual page in that way right now.

2.2 Candidate.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Oct 10 23:14:23 1996 UTC (15 years, 4 months ago) by jdp
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +28 -25 lines
Add a new option "-f hints_file" to specify an alternate file instead of
"/var/run/ld.so.hints".

Delete an incorrect statement about LD_LIBRARY_PATH from the manual
page.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Oct 1 01:31:51 1996 UTC (15 years, 4 months ago) by peter
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +51 -16 lines
Updates to deal with ld.so.hints version 2.  It now deals with the
ldconfig path (from NetBSD).  I added code to make sure there were no
duplicates in the path when multiple ldconfig -m's were used.

Reviewed by: nate, jdp
Obtained from: NetBSD (partly)

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Jul 12 19:08:34 1996 UTC (15 years, 7 months ago) by jkh
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -3 lines
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>

Revision 1.9.4.3: download - view: text, markup, annotated - select for diffs
Tue Apr 2 13:10:30 1996 UTC (15 years, 10 months ago) by phk
Diff to: previous 1.9.4.2: preferred, colored
Changes since revision 1.9.4.2: +30 -10 lines
Fix to ldconfig to handle shlibs with . in their actual names.
Taken from -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Feb 26 02:22:33 1996 UTC (15 years, 11 months ago) by pst
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +30 -10 lines
Bring in some of Paul K's fixes for ldconfig from NetBSD-current.
This solves the problem of being unable to use shared libraries with dots
in their names before the ".so.<version>" code.

This should be brought into -stable.

There are more changes from Paul that look like they should be included,
but they change the format of the hints file, so I'm not going to bring them
in now (but we should in the future).

Obtained from: pk@netbsd.org

Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Fri Aug 25 04:41:14 1995 UTC (16 years, 5 months ago) by davidg
Diff to: previous 1.9.4.1: preferred, colored
Changes since revision 1.9.4.1: +2 -1 lines
Brought in change from rev 1.11: reset umask.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Aug 16 06:31:50 1995 UTC (16 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -1 lines
Reset the umask before creating the output file; otherwise running
ldconfig as root with a restrictive umask yielded ld.so.hints
unreadable by the world (and thus useless).

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Sun Aug 13 13:26:25 1995 UTC (16 years, 6 months ago) by jkh
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +67 -39 lines
Bring in changes to support `-m' flag from the HEAD.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 9 23:36:12 1995 UTC (16 years, 7 months ago) by jkh
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +67 -39 lines
Bring in ldconfig changes so that old and new packages will work in either case.
Submitted by:	pk@NetBSD.org

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jun 24 10:08:44 1995 UTC (16 years, 7 months ago) by asami
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +67 -39 lines
Add an "-m" flag to merge instead of replace the entries.  We can
now safely add a line like

ldconfig -m ${PREFIX}/lib

in ports' Makefiles and packing lists without throwing away some
directories the user may have added.

Submitted by:   Mostly by Paul Kranenburg <pk@cs.few.eur.nl>

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jan 12 19:11:46 1995 UTC (17 years, 1 month ago) by joerg
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -6 lines
Make ldconfig and ld.so not hashing the shared lib minor number.  This
misfeature caused troubles when a program attempted to access a shlib
where one with a higher minor number has been hashed.  Ldconfig does
only include the highest-numbered shlib anyway, so this is in no way a
limitation of generality.

Caution: after installing the new programs, your /var/run/ld.so.hints
needs to be rebuiult; run ldconfig again as it's done from /etc/rc.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Dec 23 22:31:24 1994 UTC (17 years, 1 month ago) by nate
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -11 lines
Updated to recent version of Paul K.'s shlib code.  This code has better
warning handling and allows for link-time warnings with a modified
version of gas.

Note: Not all of the newer bits were updated such as some of the non-x86
machine-dependant code is relevant to FreeBSD right now.

Obtained from: NetBSD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jun 15 22:40:56 1994 UTC (17 years, 7 months ago) by rich
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -8 lines
Changes from Paul Kranenburg which bring us into sync with his sources:

 handling of errors through the standard err() and warn()
 more fixes for Geoff Rehmet's NULL pointer bug.
 fixes NULL pointer bugs when linking mono and nested X servers.
 supports a `-nostdlib' option.
 accept object files without a symbol table
 don't attempt dynamic linking when `-A' is given

a few variable names have chaged (desc -> fd), and the formatting has
changed which should make it much easier to track his sources.

I tested 'make world' for /usr/src and X twice with these changes.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jun 5 19:04:11 1994 UTC (17 years, 8 months ago) by ats
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Add the -r and -s flags to the Usage string.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Feb 13 20:42:30 1994 UTC (18 years ago) by jkh
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +24 -12 lines
This is Paul K's latest set of ld changes.  A commit was necessary at this
late stage due to the fact that link.h was copyright Sun Microsystems.

This version of ld sync's us up with NetBSD's ld and supports compatablily
with NetBSD's -[zZ] flags (which we had reversed).  Compiling with this
new ld will give you RRS warnings for libraries which do not contain .type
infomation - these wsarnings are harmless and will go away as soon as you
recompile your libraries (cd /usr/src; make libraries).

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Dec 2 01:03:16 1993 UTC (18 years, 2 months ago) by jkh
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +0 -0 lines
Second attempt to integrate Paul K's changes.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Nov 30 20:47:45 1993 UTC (18 years, 2 months ago) by jkh
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -4 lines
Many recent fixes from Paul K, add support for chaining of shared lib deps.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Nov 9 04:19:22 1993 UTC (18 years, 3 months ago) by paul
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Updated to newest ld from pk.

lib.c:
Pull in archives containing definitions needed by shared objects.
warnings.c:
Less spurious "undefined symbol" msgs for shared library defined
symbols.
ld.c:
Do a better job of recognising data in text segments, eg. `const char []'.
shlib.c,ld/rtld/{Makefile rtld.c}
Use strsep() in stead of strtok() and restore colons in eg. env. vars.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Nov 3 23:41:36 1993 UTC (18 years, 3 months ago) by paul
Branches: MAIN
Imported NetBSD's ld for shared libs.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options