aboutsummaryrefslogtreecommitdiff
path: root/sbin/ldconfig/ldconfig.8
Commit message (Collapse)AuthorAgeFilesLines
* ldconfig: remove ignored -v (verbose) optionStefan Eßer2024-03-011-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | The -v option used to print useful information when operating on a.out format libraries. After the removal of a.out support, it was accepted but did not have any effect. Remove the option and update the man-page. While here mention the set of historic options that are accepted but ignored: "-elf", "-s", and "-v". The FILES section contained outdated information and did not mention the way library directories of optional ports and packages are included in the library search path recorded in the hints file. The description of the "-B" option was incorrect (described a planned change) for big-endian platforms (powerpc64). These do still default to big-endian hints files, since the current version of the "pkg" program expects the hints file to be in native byte-order. Reviewed by: kib MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D44139
* ldconfig: support hints files of either byte-orderStefan Eßer2024-02-281-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the ldconfig program accept hints files in little-endian and big-endian format on all architectures. The default format is the native byte-order of the respective host. This is expected to change when a version of the pkg command is available that implements support for either byte-order in its internal ldconfig function. (Already committed in the development tree of the pkg utility, a release is expected at the end of Q1/2024). This update adds the -B option to the ldconfig program. It enforces the creation of a big-endian hints file on a little-endian host. The main purpose to is support of tests with non-native byte-order files on little-endian hosts. It will be removed when all supported FreeBSD releases use little-endian hints files by default. When little-endian hints files are generally used, support of either byte-order in libexec/rtld can also be removed. When support for big-endian hints files is no longer required, the COND_SWAP macro in ldconfig and rtld shall be replaced by le32toh(), which just return their argument on little-endian architectures. Approved by: kib MFC after: 1 month Relnotes: yes Differential Revision: https://reviews.freebsd.org/D44093
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* ldconfig(8): nostd/-s does nothingKonstantin Belousov2021-11-241-5/+1
| | | | | | | | | | | Remove the option from man page and summary. Silently ignore it when parsing command line for backward compatibility. Reviewed by: emaste Tested by: jbeich Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33058
* ldconfig(8): update manpage to realityKonstantin Belousov2021-05-211-67/+47
| | | | | | | | | ELF ldconfig only maintains the search list, there is no hints Reviewed by: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D30272
* ldconfig: Retire a.out supportEd Maste2020-12-311-7/+3
| | | | | | | | | | | | aout support in ldconfig hasn't been required since FreeBSD 2.x. If someone needs to use FreeBSD 2 shared libraries they will be best served by using a FreeBSD 2 ldconfig as well. In aa5e1b42e6e3 we removed the ldconfig a.out invocation from rc.d but left the support in ldconfig itself. Remove it now. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27481
* ldconfig: add aout deprecation noticeEd Maste2020-03-171-1/+3
| | | | | | | | | | | aout support in ldconfig hasn't been required since FreeBSD 2.x. Anyone still using FreeBSD 2 shared libraries can also use a FreeBSD 2 ldconfig to generate aout ldconfig hints. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=359037
* ldconfig(8): use .Nm instead of 'ldconfig'Eitan Adler2018-01-091-3/+4
| | | | Notes: svn path=/head/; revision=327719
* ldconfig(8): clarify language for filesEitan Adler2018-01-071-2/+4
| | | | | | | | | | | | The previous language did not make it clear that 'Files' are the files specified above. Clarify it. Reported by: dana <dana@dana.is> Reviewed by: dana <dana@dana.is> MFC After: 1 week Notes: svn path=/head/; revision=327671
* Remove obsolete objformat information.Joel Dahl2013-03-191-27/+1
| | | | | | | Submitted by: db Notes: svn path=/head/; revision=248496
* Tweak -32 description and add -32 FILES.David E. O'Brien2005-12-091-2/+7
| | | | Notes: svn path=/head/; revision=153256
* -mdoc sweep.Ruslan Ermilov2005-11-181-1/+1
| | | | Notes: svn path=/head/; revision=152568
* Document the -32 switch available on amd64.John Baldwin2005-11-111-0/+4
| | | | | | | | Submitted by: Steve Kargl sgk at troutmask dot apl dot washington dot edu MFC after: 1 week Notes: svn path=/head/; revision=152321
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-9/+18
| | | | Notes: svn path=/head/; revision=131488
* Describe the pattern filenames must be in before they are added to the hintsTom Rhodes2003-05-081-0/+3
| | | | | | | | | | file. PR: 46271 Approved by: re (blanket) Notes: svn path=/head/; revision=114844
* Clarify the explanation of the behavior for setuid programs byJohn Polstra2002-08-181-2/+2
| | | | | | | | | | | | noting that the restrictions do not apply if the user invoking the program is also the owner of the program. Also, capitalize a section header properly. PR: misc/41180 Notes: svn path=/head/; revision=102070
* The .Nm utilityPhilippe Charnier2002-07-061-3/+5
| | | | Notes: svn path=/head/; revision=99501
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* Fix a "this sentence no verb" grammar bogon.Jens Schweikhardt2001-06-081-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=77924
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-181-1/+3
| | | | Notes: svn path=/head/; revision=70152
* Extend the ldconfig security check so that it ignores group-writableJohn Polstra2000-12-171-2/+4
| | | | | | | | | | | | | | directories in addition to world-writable directories. As before, this check can be disabled with the "-i" option, which in turn can be made the default for boot-up by setting "ldconfig_insecure=YES" in "/etc/rc.conf". Also fix an mdoc nit in the manual page. Submitted by: Maxime Henrion <mux@qualys.com> Notes: svn path=/head/; revision=70121
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68960
* Use Fx macro wherever possible.Ruslan Ermilov2000-11-141-1/+2
| | | | Notes: svn path=/head/; revision=68716
* Add a "-i" option ("insecure") which disables the checks forJohn Polstra2000-08-071-2/+10
| | | | | | | | | | root ownership, etc. I will soon commit a companion knob for "/etc/rc.conf". Submitted by: Maxime Henrion <mhenrion@cybercable.fr> Notes: svn path=/head/; revision=64360
* If a directory is world-writable or is not owned by root, skip itJohn Polstra2000-07-261-4/+4
| | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=63872
* Make "ldconfig" with no arguments behave the same as "ldconfig -R".John Polstra2000-07-091-0/+1
| | | | | | | Submitted by: Maxime Henrion <mhenrion@cybercable.fr> Notes: svn path=/head/; revision=62858
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-061-1/+2
| | | | Notes: svn path=/head/; revision=57782
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-7/+14
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57668
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Implement ldconfig functionality for ELF. The hints are stored inJohn Polstra1998-09-051-20/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=38836
* Removed /etc/ld.so.conf reference from FILES section (people getAlexander Langer1998-01-011-3/+1
| | | | | | | | | | confused when they can't find it), but leave the reference to it as being a standard filename (which doesn't imply that it exists). Discussed with: jkh Notes: svn path=/head/; revision=32147
* Add -R (rescan or refresh) option to rescan and rebuild the hintsPeter Wemm1997-08-221-3/+8
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=28559
* Allow ldconfig to accept files (containing directory paths) as well asJordan K. Hubbard1997-07-111-3/+16
| | | | | | | | | directory paths. Reviewed by: jkh & jdp Submitted by: Hans Zuidam <hans@brandinnovators.com> Notes: svn path=/head/; revision=27334
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22996
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Document that "ldconfig -m" rescans all directories previouslyJohn Polstra1996-11-091-3/+6
| | | | | | | | | | entered into the hints file, in addition to the directories named on the command line. 2.2 Candidate. Notes: svn path=/head/; revision=19584
* Add a new option "-f hints_file" to specify an alternate file instead ofJohn Polstra1996-10-101-12/+9
| | | | | | | | | | "/var/run/ld.so.hints". Delete an incorrect statement about LD_LIBRARY_PATH from the manual page. Notes: svn path=/head/; revision=18859
* Correct some man page xrefs, and some other minor changes to bring someMike Pritchard1996-04-081-12/+12
| | | | | | | | | man pages up to mdoc guidelines and fix some minor formatting glitches. Also fixed a number of man pages to not abuse the .Xr macro to display functions and path names and a lot of other junk. Notes: svn path=/head/; revision=15135
* Add an "-m" flag to merge instead of replace the entries. We canSatoshi Asami1995-06-241-2/+8
| | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=9290
* Updated to recent version of Paul K.'s shlib code. This code has betterNate Williams1994-12-231-12/+35
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=5205
* Changes from Paul Kranenburg which bring us into sync with his sources:Rich Murphey1994-06-151-0/+2
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=1741
* Add that /usr/X386/lib is also in the default path for ldconfig. Bug foundAndreas Schulz1994-04-051-1/+3
| | | | | | | | by Satoshi Asami ( asami@cs.berkeley.edu ). Fixed also a minor typo problem. Notes: svn path=/head/; revision=1336
* This is Paul K's latest set of ld changes. A commit was necessary at thisJordan K. Hubbard1994-02-131-1/+1
| | | | | | | | | | | | | 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). Notes: svn path=/head/; revision=1153
* Changed NetBSD -> FreeBSDNate Williams1994-02-111-2/+2
| | | | Notes: svn path=/head/; revision=1146
* Imported NetBSD's ld for shared libs.Paul Richards1993-11-031-0/+98
Notes: svn path=/head/; revision=696