summaryrefslogtreecommitdiffstats
path: root/sbin/ldconfig
Commit message (Collapse)AuthorAgeFilesLines
* Add a comment about why aout support is still here: We need it forimp2013-03-191-0/+7
| | | | compat2x, which is still in use, as evidence by recent bug reports.
* Remove obsolete objformat information.joel2013-03-191-27/+1
| | | | Submitted by: db
* ANSIfy ldconfig and the aout bits it still uses from rtld-aout.ed2009-12-291-13/+7
| | | | (Why is aout support still there?)
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-1/+0
| | | | Submitted by: Ulrich Spörlein
* Remove unused reference to objformat.hpeter2007-01-251-1/+0
|
* Tweak -32 description and add -32 FILES.obrien2005-12-091-2/+7
|
* -mdoc sweep.ru2005-11-181-1/+1
|
* Document -32 flag in usage() output as well.jhb2005-11-111-1/+1
| | | | | Requested by: ru MFC after: 1 week
* Document the -32 switch available on amd64.jhb2005-11-111-0/+4
| | | | | Submitted by: Steve Kargl sgk at troutmask dot apl dot washington dot edu MFC after: 1 week
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-101-1/+1
|
* Improve readability for the recently introduced changes by havingdelphij2005-01-141-4/+4
| | | | | | their sizeof(*p) instead of explicitlly specifying their types. Suggested by: nectar
* Use a better name than underscore-tmpfile for better representationdelphij2005-01-141-5/+5
| | | | | | of the meaning. Suggested by: stefanf
* 64-bit clean + WARNS=6:delphij2005-01-142-22/+27
| | | | | | | | | | | | | | | | | - 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.
* Avoid using void pointers in additive expressions.stefanf2004-08-141-2/+2
| | | | PR: 56653
* Mechanically kill hard sentence breaks.ru2004-07-021-9/+18
|
* Add initial support for compiling a special 32 bit version ofpeter2004-03-211-12/+26
| | | | | | | 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.
* Fix 10 year old size-of-bcopy bug.cperciva2004-03-131-1/+1
| | | | | | | | PR: bin/43930 Submitted by: Alan Barrett Approved by: rwatson (mentor) MFNetBSD: revision 1.35 MFC after: 3 days
* style.Makefile(5):johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* Describe the pattern filenames must be in before they are added to the hintstrhodes2003-05-081-0/+3
| | | | | | | file. PR: 46271 Approved by: re (blanket)
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-9/+10
| | | | | | | | | | | | | | | 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
* Clarify the explanation of the behavior for setuid programs byjdp2002-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
* The .Nm utilitycharnier2002-07-061-3/+5
|
* o __P removedimp2002-03-212-9/+9
| | | | o main prototype removed
* Remove 'register' keyword.obrien2002-03-201-2/+2
| | | | | | 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?)
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Fix a "this sentence no verb" grammar bogon.schweikh2001-06-081-1/+1
| | | | MFC after: 1 week
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-022-2/+2
| | | | | | | | 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.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* Elminate common declaration.ps2001-02-222-1/+2
| | | | Reviewed by: peter
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-181-1/+3
|
* Extend the ldconfig security check so that it ignores group-writablejdp2000-12-172-2/+8
| | | | | | | | | | | 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>
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Use Fx macro wherever possible.ru2000-11-141-1/+2
|
* Add a "-i" option ("insecure") which disables the checks forjdp2000-08-074-35/+36
| | | | | | | root ownership, etc. I will soon commit a companion knob for "/etc/rc.conf". Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
* If a directory is world-writable or is not owned by root, skip itjdp2000-07-263-5/+35
| | | | | | | | | | | 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>
* Make "ldconfig" with no arguments behave the same as "ldconfig -R".jdp2000-07-092-1/+4
| | | | Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
* Remove more single-space hard sentence breaks.sheldonh2000-03-061-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-7/+14
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* If a directory on the command line doesn't exist, warn about itjdp2000-01-211-2/+2
| | | | | | | and proceed rather than quitting with a fatal error message. PR: bin/16056 Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
* Fix insecure tempfile handlingkris2000-01-161-8/+4
| | | | Reviewed by: audit@freebsd.org
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* Make usage() reflect reality (add the -aout and -elf options).billf1999-04-211-2/+2
| | | | OK'd by: bde
* Add a new library function getobjformat(). It checks all thejdp1998-09-091-73/+16
| | | | | | | | | | | | | 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.
* Fix calls to mmap. It returns void *, and on failure it returnsjdp1998-09-061-11/+11
| | | | | | | | | | | 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>
* For a.out mode, ignore shared libraries that don't have at least 2jdp1998-09-051-1/+3
| | | | version numbers.
* Implement ldconfig functionality for ELF. The hints are stored injdp1998-09-055-31/+465
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed printf format errors.bde1998-08-021-4/+5
|
OpenPOWER on IntegriCloud