#
a565ca59 |
| 05-Sep-1998 |
John Polstra <jdp@FreeBSD.org> |
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. T
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.
show more ...
|
#
ab845347 |
| 02-Aug-1998 |
Bruce Evans <bde@FreeBSD.org> |
Fixed printf format errors.
|
Revision tags: release/2.2.7 |
|
#
b50d7fae |
| 06-Jul-1998 |
Philippe Charnier <charnier@FreeBSD.org> |
Add rcsid. remove unused #includes. Getopt returns -1 not EOF. Add usage(). Cosmetics in err(3) string.
|
#
7abda51b |
| 28-Jun-1998 |
Bruce Evans <bde@FreeBSD.org> |
Fixed printf format errors.
|
#
cabb97dc |
| 26-May-1998 |
Søren Schmidt <sos@FreeBSD.org> |
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.
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...
show more ...
|
Revision tags: release/2.2.6, release/2.2.5_cvs |
|
#
d4ba5766 |
| 22-Aug-1997 |
Peter Wemm <peter@FreeBSD.org> |
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 li
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.
show more ...
|
#
571b472b |
| 11-Jul-1997 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
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 tags: release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs |
|
#
fce15c9a |
| 22-Feb-1997 |
Peter Wemm <peter@FreeBSD.org> |
Revert $FreeBSD$ to $Id$
|
Revision tags: release/2.1.6_cvs, release/2.1.6.1 |
|
#
1130b656 |
| 14-Jan-1997 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
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
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.
show more ...
|
#
d66f9d22 |
| 08-Nov-1996 |
John Polstra <jdp@FreeBSD.org> |
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 "ldc
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.
show more ...
|
#
7c6da7dc |
| 11-Oct-1996 |
John Polstra <jdp@FreeBSD.org> |
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 tags: release/2.1.5_cvs |
|
#
80c71499 |
| 01-Oct-1996 |
Peter Wemm <peter@FreeBSD.org> |
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.
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)
show more ...
|
#
526195ad |
| 12-Jul-1996 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
#
0f6b2cb3 |
| 26-Feb-1996 |
Paul Traina <pst@FreeBSD.org> |
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 shoul
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
show more ...
|
Revision tags: release/2.1.0_cvs |
|
#
1c7895ac |
| 16-Aug-1995 |
Joerg Wunsch <joerg@FreeBSD.org> |
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).
|
#
f606c848 |
| 24-Jun-1995 |
Satoshi Asami <asami@FreeBSD.org> |
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 t
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>
show more ...
|
Revision tags: release/2.0.5_cvs |
|
#
d5453ba5 |
| 12-Jan-1995 |
Joerg Wunsch <joerg@FreeBSD.org> |
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. Ldc
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.
show more ...
|
#
61f9ce8d |
| 23-Dec-1994 |
Nate Williams <nate@FreeBSD.org> |
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 updat
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
show more ...
|
Revision tags: release/2.0, release/1.1.5.1_cvs |
|
#
699e1b82 |
| 16-Jun-1994 |
Rich Murphey <rich@FreeBSD.org> |
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
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.
show more ...
|
#
91b1841d |
| 05-Jun-1994 |
Andreas Schulz <ats@FreeBSD.org> |
Add the -r and -s flags to the Usage string.
|
Revision tags: release/1.1.0_cvs |
|
#
09e3d49d |
| 13-Feb-1994 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
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
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).
show more ...
|
#
52c4ca7a |
| 30-Nov-1993 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Many recent fixes from Paul K, add support for chaining of shared lib deps.
|
#
b9ae52e3 |
| 04-Nov-1993 |
Paul Richards <paul@FreeBSD.org> |
Imported NetBSD's ld for shared libs.
|