#
f221df65 |
| 19-Apr-2024 |
Stefan Eßer <se@FreeBSD.org> |
ldconfig: use little-endian hints file on all architectures
Remove the test for building on a big-endian architecture, which preserved the previous default of creating the ELF hints file in native b
ldconfig: use little-endian hints file on all architectures
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
show more ...
|
#
6b13e4cb |
| 19-Apr-2024 |
Stefan Eßer <se@FreeBSD.org> |
ldconfig: small optimization
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 a
ldconfig: small optimization
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
show more ...
|
Revision tags: release/13.3.0 |
|
#
e0dfecad |
| 28-Feb-2024 |
Stefan Eßer <se@FreeBSD.org> |
ldconfig: support hints files of either byte-order
Make the ldconfig program accept hints files in little-endian and big-endian format on all architectures.
The default format is the native byte-or
ldconfig: support hints files of either byte-order
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
show more ...
|
Revision tags: release/14.0.0 |
|
#
b3e76948 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
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
show more ...
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0 |
|
#
3f2c6f55 |
| 19-Nov-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
ldconfig: start of cleanup
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
ldconfig: start of cleanup
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
show more ...
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
1de7b4b8 |
| 27-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
various: general adoption of SPDX licensing ID tags.
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
various: general adoption of SPDX licensing ID tags.
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.
show more ...
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs |
|
#
5e6220d9 |
| 03-May-2001 |
David E. O'Brien <obrien@FreeBSD.org> |
* 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 B
* 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.
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
6afb6d0a |
| 22-Feb-2001 |
Paul Saab <ps@FreeBSD.org> |
Elminate common declaration.
Reviewed by: peter
|
#
4c6616fc |
| 17-Dec-2000 |
John Polstra <jdp@FreeBSD.org> |
Extend the ldconfig security check so that it ignores group-writable directories in addition to world-writable directories. As before, this check can be disabled with the "-i" option, which in turn
Extend the ldconfig security check so that it ignores group-writable 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>
show more ...
|
Revision tags: release/4.2.0, release/4.1.1_cvs |
|
#
643dcf40 |
| 07-Aug-2000 |
John Polstra <jdp@FreeBSD.org> |
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 tags: release/4.1.0 |
|
#
fa0c86aa |
| 26-Jul-2000 |
John Polstra <jdp@FreeBSD.org> |
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 che
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>
show more ...
|
Revision tags: release/3.5.0_cvs, release/4.0.0_cvs |
|
#
2621949f |
| 21-Jan-2000 |
John Polstra <jdp@FreeBSD.org> |
If a directory on the command line doesn't exist, warn about it and proceed rather than quitting with a fatal error message.
PR: bin/16056 Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.
If a directory on the command line doesn't exist, warn about it and proceed rather than quitting with a fatal error message.
PR: bin/16056 Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
show more ...
|
Revision tags: release/3.4.0_cvs, release/3.3.0_cvs |
|
#
7f3dea24 |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8 |
|
#
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 ...
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs |
|
#
5e6220d9 |
| 03-May-2001 |
David E. O'Brien <obrien@FreeBSD.org> |
* 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 B
* 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.
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
6afb6d0a |
| 22-Feb-2001 |
Paul Saab <ps@FreeBSD.org> |
Elminate common declaration.
Reviewed by: peter
|
#
4c6616fc |
| 17-Dec-2000 |
John Polstra <jdp@FreeBSD.org> |
Extend the ldconfig security check so that it ignores group-writable directories in addition to world-writable directories. As before, this check can be disabled with the "-i" option, which in turn
Extend the ldconfig security check so that it ignores group-writable 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>
show more ...
|
Revision tags: release/4.2.0, release/4.1.1_cvs |
|
#
643dcf40 |
| 07-Aug-2000 |
John Polstra <jdp@FreeBSD.org> |
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 tags: release/4.1.0 |
|
#
fa0c86aa |
| 26-Jul-2000 |
John Polstra <jdp@FreeBSD.org> |
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 che
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>
show more ...
|
Revision tags: release/3.5.0_cvs, release/4.0.0_cvs |
|
#
2621949f |
| 21-Jan-2000 |
John Polstra <jdp@FreeBSD.org> |
If a directory on the command line doesn't exist, warn about it and proceed rather than quitting with a fatal error message.
PR: bin/16056 Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.
If a directory on the command line doesn't exist, warn about it and proceed rather than quitting with a fatal error message.
PR: bin/16056 Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
show more ...
|
Revision tags: release/3.4.0_cvs, release/3.3.0_cvs |
|
#
7f3dea24 |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8 |
|
#
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 ...
|