#
16d000bd |
| 31-Oct-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld.1: cross-reference rtld_get_var.3
Reviewed by: Alexander Ziaee Discussed with: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D
rtld.1: cross-reference rtld_get_var.3
Reviewed by: Alexander Ziaee Discussed with: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47351
show more ...
|
#
b74aaa1a |
| 17-Oct-2024 |
Graham Percival <gperciva@tarsnap.com> |
manuals: Fix dates
These were reported by `mandoc -T lint ...` as warnings.
Signed-off-by: Graham Percival <gperciva@tarsnap.com> Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup
manuals: Fix dates
These were reported by `mandoc -T lint ...` as warnings.
Signed-off-by: Graham Percival <gperciva@tarsnap.com> Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1475
show more ...
|
Revision tags: release/13.4.0 |
|
#
860c4d94 |
| 17-Jul-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld: add LD_NO_DL_ITERATE_PHDR_AFTER_FORK env var
which makes threaded fork ignore the phdr rtld lock, in particular allowing the dl_iterate_phdr() to block in callback. The cost is that the image
rtld: add LD_NO_DL_ITERATE_PHDR_AFTER_FORK env var
which makes threaded fork ignore the phdr rtld lock, in particular allowing the dl_iterate_phdr() to block in callback. The cost is that the image started in this mode cannot use dl_iterate_phdr() after fork.
PR: 280318 Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|
#
bc25bc68 |
| 25-Jul-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld(1): Spell value as VALUE, not NAME
Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
Revision tags: release/14.1.0 |
|
#
6a7819e4 |
| 28-Apr-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld.1: clarify interaction between -u and -o
Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
d1cd0cc3 |
| 28-Apr-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld: add direct-exec option -o
allowing to set any known LD_ parameter for the current rtld invocation, but without polluting the activated' binary environment. In other words, the set parameter i
rtld: add direct-exec option -o
allowing to set any known LD_ parameter for the current rtld invocation, but without polluting the activated' binary environment. In other words, the set parameter is not exported into the environment.
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44988
show more ...
|
#
8d747370 |
| 20-Apr-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld(1): minor clarification for LD_STATIC_TLS_EXTRA
Also properly style the paragraph.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
|
Revision tags: release/13.3.0, release/14.0.0 |
|
#
95335dd3 |
| 29-Oct-2023 |
Stephen J. Kiernan <stevek@FreeBSD.org> |
rtld: introduce STATIC_TLS_EXTRA
The new STATIC_TLS_EXTRA variable provides a means for applications to increases the size of the extra static TLS space allocated by rtld beyond the default of '128'
rtld: introduce STATIC_TLS_EXTRA
The new STATIC_TLS_EXTRA variable provides a means for applications to increases the size of the extra static TLS space allocated by rtld beyond the default of '128'. This extra static TLS space is used for objects loaded with dlopen.
The value specified in the variable must be no less than the default value and no greater than the maximum allowed value for size_t type.
If an invalid value is specified, rtld will ignore it and just use the default value.
The rtld(1) man page is updated to document this new option.
Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D42025
show more ...
|
#
fa9896e0 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line nroff pattern
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
8cc44a1e |
| 10-Nov-2022 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld: add support for the $LIB token
similar to the same token in glibc.
Requested and reviewed by: bapt Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://review
rtld: add support for the $LIB token
similar to the same token in glibc.
Requested and reviewed by: bapt Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D37329
show more ...
|
Revision tags: release/13.1.0 |
|
#
6c799530 |
| 25-Feb-2022 |
John F. Carr <jfc@mit.edu> |
rtld.1: Fix misplaced text
PR: 262194 Fixes: f90218886fc8 ("rtld: introduce PRELOAD_FDS") MFC after: 3 days
|
Revision tags: release/12.3.0 |
|
#
64ba1f4c |
| 13-Nov-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld: Implement LD_SHOW_AUXV
It dumps auxv as seen by interpreter, right before starting any user code.
Copied from: glibc Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
ba7f9c1b |
| 12-Oct-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld direct exec: add -d option
to ignore lack of execute permission on the binary. The check is a bad security theatre anyway.
Reviewed by: arichardson, imp Sponsored by: The FreeBSD Foundation M
rtld direct exec: add -d option
to ignore lack of execute permission on the binary. The check is a bad security theatre anyway.
Reviewed by: arichardson, imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32464
show more ...
|
#
7da378f9 |
| 15-Aug-2021 |
Fangrui Song <i@maskray.me> |
rtld: Switch to the standard symbol lookup behavior if LD_DYNAMIC_WEAK is set
The current lookup prefers a strong definition to a STB_WEAK definition (similar to glibc pre-2.2 behavior) which does n
rtld: Switch to the standard symbol lookup behavior if LD_DYNAMIC_WEAK is set
The current lookup prefers a strong definition to a STB_WEAK definition (similar to glibc pre-2.2 behavior) which does not conform to the ELF specification.
The non-compliant behavior provoked https://reviews.llvm.org/D4418 which was intended to fix -shared-libasan but introduced new problems (and caused some sanitizer tests (e.g. test/asan/TestCases/interception_failure_test.cpp) to fail): sanitizer interceptors are STB_GLOBAL instead of STB_WEAK, so defining a second STB_GLOBAL interceptor can lead to a multiple definition linker error. For example, in a -fsanitize={address,memory,...} build, libc functions like malloc/free/strtol/... cannot be provided by user object files.
See https://docs.freebsd.org/cgi/getmsg.cgi?fetch=16483939+0+archive/2014/freebsd-current/20140716.freebsd-current for discussions.
This patch implements the ELF-compliant behavior when LD_DYNAMIC_WEAK is set. STB_WEAK wrestling in symbol lookups in `Search the dynamic linker itself` are untouched.
Reviewed by: kib MFC after: 1 week Differential revision: https://reviews.freebsd.org/D26352
show more ...
|
#
e3149e0a |
| 03-Jun-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld: Rename -t option to -u (ignore LD_ vars)
Requested by: arichardson Sponsored by: The FreeBSD Foundation MFC after: 3 days
|
#
d81f999a |
| 29-May-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld direct exec: add option to ignore LD_ variables
Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
Revision tags: release/13.0.0 |
|
#
d36d6816 |
| 05-Apr-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld dl_iterate_phdr(): dlpi_tls_data is wrong
dl_iterate_phdr() dlpi_tls_data should provide the TLS module segment address, and not the TLS init segment address as it does now.
Reported by: emacs
rtld dl_iterate_phdr(): dlpi_tls_data is wrong
dl_iterate_phdr() dlpi_tls_data should provide the TLS module segment address, and not the TLS init segment address as it does now.
Reported by: emacsray@gmail.com PR: 254774 Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|
#
e086aff9 |
| 25-Mar-2021 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
rtld: fix the man page
In f90218886fc8 in man page I used LD_PRELOAD_PATH_FDS instead of LD_PRELOAD_FDS.
Reported by: rpokala
|
#
f9021888 |
| 24-Mar-2021 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
rtld: introduce PRELOAD_FDS
The new PRELOAD_FDS variable accepts a list of file descriptors that should be loaded into the process.
This may be used to optimize a loading process - in the case when
rtld: introduce PRELOAD_FDS
The new PRELOAD_FDS variable accepts a list of file descriptors that should be loaded into the process.
This may be used to optimize a loading process - in the case when we already have a file descriptor to the library; we don't have to look into multiple PATH to find it.
It may also be used in capability mode to load a single additional library without the need to open a directory that contains it.
The last use of this functionality t may be a race-free method of loading libraries.
Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D29334
show more ...
|
Revision tags: release/12.2.0 |
|
#
812b0903 |
| 09-Oct-2020 |
Gordon Bergling <gbe@FreeBSD.org> |
Fix a few mandoc issues
- whitespace at end of input line - skipping paragraph macro: Pp at the end of Sh - new sentence, new line - consider using OS macro: Fx - AUTHORS section without An macro -
Fix a few mandoc issues
- whitespace at end of input line - skipping paragraph macro: Pp at the end of Sh - new sentence, new line - consider using OS macro: Fx - AUTHORS section without An macro - skipping paragraph macro: Pp before Ss
show more ...
|
Revision tags: release/11.4.0 |
|
#
e82d1982 |
| 01-Jun-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld: Add -b option to allow to specify image name different from arg0.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
c8dd6c05 |
| 31-May-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
rtld: Add -v switch to print some useful information about the rtld binary.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
d89d5508 |
| 26-May-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
Add version indicators to rtld.
It is wrong to relate on __FreeBSD_version, either from include/param.h, kernel, or libc, to check for rtld features. Rtld might be from newer world than the running
Add version indicators to rtld.
It is wrong to relate on __FreeBSD_version, either from include/param.h, kernel, or libc, to check for rtld features. Rtld might be from newer world than the running userspace.
Add special private symbols exported by rtld itself, to indicate the changes in runtime behavior, and features that cannot be otherwise detected or deduced at runtime.
Note that the symbols are not exported from libc, so they intentionally cannot be linked against, and exported from the private namespace from rtld. Consumers are required to use dlsym(3). For instance, for _rtld_version_laddr_offset, user should do ptr = dlsym(RTLD_DEFAULT, "_rtld_version_laddr_offset") or even ptr = dlvsym(RTLD_DEFAULT, "_rtld_version_laddr_offset", "FBSDprivate_1.0"); Non-null ptr means that the change is present.
Also add _rtld_version__FreeBSD_version indicator to report the headers version used at time of the rtld build.
Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24982
show more ...
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0, release/10.4.0 |
|
#
b754c279 |
| 13-Sep-2017 |
Navdeep Parhar <np@FreeBSD.org> |
MFH @ r323558.
|
#
5be4ad9e |
| 09-Sep-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r323343
|