comparison dynload/dynload.3 @ 382:dd5d03483314

- dynload changes to support macos >= 11.0.1 "built-in dynamic linker cache of all system-provided libraries" (those dylibs are no longer present on the fs)" * dynload_plain test code changes to reflect this * note in doc - changed dynload_plain to not do inode-based tests on windows
author Tassilo Philipp
date Wed, 20 Jan 2021 13:49:43 +0100
parents 3df50603afa9
children
comparison
equal deleted inserted replaced
381:fccbb45a2dae 382:dd5d03483314
1 .\" Copyright (c) 2007-2017 Daniel Adler <dadler AT uni-goettingen DOT de>, 1 .\" Copyright (c) 2007-2020 Daniel Adler <dadler AT uni-goettingen DOT de>,
2 .\" Tassilo Philipp <tphilipp AT potion-studios DOT com> 2 .\" Tassilo Philipp <tphilipp AT potion-studios DOT com>
3 .\" 3 .\"
4 .\" Permission to use, copy, modify, and distribute this software for any 4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above 5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies. 6 .\" copyright notice and this permission notice appear in all copies.
98 and 98 and
99 .Fn dlSymsNameFromValue 99 .Fn dlSymsNameFromValue
100 are used to lookup symbol names using an index or symbol's address, respectively, returning a null pointer on error. The names are returned as they would appear in C source code (mangled if C++, etc.). The address passed to 100 are used to lookup symbol names using an index or symbol's address, respectively, returning a null pointer on error. The names are returned as they would appear in C source code (mangled if C++, etc.). The address passed to
101 .Fn dlSymsNameFromValue 101 .Fn dlSymsNameFromValue
102 must point to a loaded symbol. 102 must point to a loaded symbol.
103 .Sh NOTES
104 .Fn dlLoadLibrary
105 does handle loading dylibs on macos >= 11.0.1 that aren't on the file system but are provided through the OS' "built-in dynamic linker cache of all system-provided libraries" (to load, use same "path" as one would with dlopen(3)).
103 .Sh BUGS 106 .Sh BUGS
104 .Fn dlGetLibraryPath 107 .Fn dlGetLibraryPath
105 is not thread-safe on Darwin (macOS, iOS, ...) and OpenBSD. 108 is not thread-safe on Darwin (macOS, iOS, ...) and OpenBSD.
106 .Pp 109 .Pp
107 .Fn dlSymsInit 110 .Fn dlSymsInit