aboutsummaryrefslogtreecommitdiff
path: root/sbin/ldconfig
Commit message (Collapse)AuthorAgeFilesLines
* Canonicalize the name of the FreeBSD FoundationLi-Wen Hsu2024-10-231-1/+1
| | | | | Reviewed by: emaste Sponsored by: The FreeBSD Foundation
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* ldconfig: fix man-page - duplicate dot at end of sentenceStefan Eßer2024-04-201-1/+1
| | | | Reported by: gbe
* ldconfig: document changed default byte-orderStefan Eßer2024-04-201-2/+3
| | | | | | | | | | Document that the hints file is created in little-endian byte-order by default now. The -B option can be used to create a big-endian hints file. Currently, both formats are accepted by the run-time linker on all architectures. MFC after: 3 days Relnotes: yes
* ldconfig: use little-endian hints file on all architecturesStefan Eßer2024-04-191-3/+3
| | | | | | | | | | | | | | | | | | | Remove the test for building on a big-endian architecture, which preserved the previous default of creating the ELF hints file in native byte-order of the respective architecture. Support for little-endian hints files has been added to the run-time linker and the pkg command. This is a step towards architecture independent little-endian hints files, but support for big-endian hints files shall only be removed from the run-time linker (and ldconfig and pkg) when the last release that defaulted to hints files in host-byte has been declared EOL. Reviewed by: kib Tested by: tuexen MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D44734
* ldconfig: small optimizationStefan Eßer2024-04-191-1/+1
| | | | | | | | | | | | | | | | | | Swap which side of a comparison is byte-swapped by be32toh() on little-endian architectures. The be32toh() macro just returns the operand and big-endian architectures and returns it byte-swapped on little-endian architectures. When operating on a constant argument, the compiler can perform the swap operation at build time instead of swapping the data read from the hints file at run time. Reviewed by: kib Tested by: tuexen MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D44734
* ldconfig: remove ignored -v (verbose) optionStefan Eßer2024-03-012-16/+23
| | | | | | | | | | | | | | | | | | | | | | | | 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-284-23/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-162-4/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* ldconfig: Use __PATH_ELF_HINTS("32") over _PATH_ELF32_HINTSJessica Clarke2023-07-091-1/+1
| | | | | | | | This will allow the latter to be removed, reducing the boilerplate needed for a new libcompat. Reviewed by: kib, brooks, jhb Differential Revision: https://reviews.freebsd.org/D40933
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-122-2/+2
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* ldconfig: remove two symbolsKonstantin Belousov2022-01-081-3/+0
| | | | | | | | _PATH_LD32_HINTS is unused because it is a.out remnant. _PATH_ELF32_HINTS is provided by rtld_paths.h already. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* ldconfig: remove libsoft supportWarner Losh2022-01-071-10/+3
| | | | | | | Remove support for -soft and its implementation. This arg was never documented, so no need to remove it from the man page. Sponsored by: Netflix
* ldconfig(8): check for no-args command line after options are parsedKonstantin Belousov2021-11-241-5/+6
| | | | | | | | | | | | | | | | | | | Default action for ldconfig is specified as -R AKA 'append', and for no-args (without options changing default actions), ldconfig should append empty list of directories to current list. But because the check was done before options were parsed out, presence of any option turned off default rescan. As result, innocently-looked commands like `ldconfig -v' were interpreted as setting directory hints list to one specified on the command line, i.e. empty. Reported by: https://github.com/mesonbuild/meson/issues/9592 Reviewed by: emaste Tested by: jbeich Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33058
* ldconfig: use libexec/rtld-elf/rtld_paths.hKonstantin Belousov2021-11-242-1/+3
| | | | | | | | | | instead of duplicating definitions using slighly different macro names. Reviewed by: emaste Tested by: jbeich Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33058
* ldconfig(8): nostd/-s does nothingKonstantin Belousov2021-11-242-9/+5
| | | | | | | | | | | 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: start of cleanupKonstantin Belousov2021-11-243-48/+31
| | | | | | | | | | | | | | Use bool. Use local variables instead of static. Remove non-functional debugging override of hints file path. Use explicit exit() instead of return from main. Minor style tweaks. Reviewed by: emaste Tested by: jbeich Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33058
* ldconfig: remove a comment which is another remnant of a.out supportKonstantin Belousov2021-11-241-1/+1
| | | | | | | Noted and reviewed by: emaste 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-313-512/+15
| | | | | | | | | | | | 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-172-1/+4
| | | | | | | | | | | 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
* Make ldconfig(8) atomic, by removing an unneccessary call to unlink(2)Edward Tomasz Napierala2018-08-091-7/+0
| | | | | | | | | | | | before rename(2). Reviewed by: kib MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D16641 Notes: svn path=/head/; revision=337530
* 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
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-273-1/+7
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Use MAP_PRIVATE instead of obsolete MAP_COPY. No functional changes.Edward Tomasz Napierala2017-10-301-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=325134
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add ldconfig -soft to process the soft float abi libraries and put itWarner Losh2016-01-181-1/+9
| | | | | | | into startup scripts for armv6. It acts much like ldconfig -32 does. Notes: svn path=/head/; revision=294295
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * sync from headSimon J. Gerraty2013-04-122-27/+8
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=249429
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Add a comment about why aout support is still here: We need it forWarner Losh2013-03-191-0/+7
| | | | | | | | | | | | | | compat2x, which is still in use, as evidence by recent bug reports. Notes: svn path=/head/; revision=248525
* | Remove obsolete objformat information.Joel Dahl2013-03-191-27/+1
|/ | | | | | | Submitted by: db Notes: svn path=/head/; revision=248496
* ANSIfy ldconfig and the aout bits it still uses from rtld-aout.Ed Schouten2009-12-291-13/+7
| | | | | | | (Why is aout support still there?) Notes: svn path=/head/; revision=201217
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-1/+0
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Remove unused reference to objformat.hPeter Wemm2007-01-251-1/+0
| | | | Notes: svn path=/head/; revision=166244
* 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 -32 flag in usage() output as well.John Baldwin2005-11-111-1/+1
| | | | | | | | Requested by: ru MFC after: 1 week Notes: svn path=/head/; revision=152323