sync code with last improvements from OpenBSD

This commit is contained in:
purplerain 2023-08-26 08:27:18 +00:00
parent 14344e4dd3
commit 0ed6f4de41
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
6 changed files with 138 additions and 17 deletions

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: dlfcn.3,v 1.34 2022/12/13 02:50:01 guenther Exp $
.\" $OpenBSD: dlfcn.3,v 1.35 2023/08/26 01:38:28 deraadt Exp $
.\" $NetBSD: dlfcn.3,v 1.3 1996/01/09 19:43:34 pk Exp $
.\"
.\" Copyright (c) 1995 Paul Kranenburg
@ -29,7 +29,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: December 13 2022 $
.Dd $Mdocdate: August 26 2023 $
.Dt DLOPEN 3
.Os
.Sh NAME
@ -305,3 +305,9 @@ being returned.
Some of the
.Nm dl*
functions first appeared in SunOS 4.
.Sh CAVEATS
Loading untrustworthy libraries into the process's address space with
.Nm dlopen
is very dangerous because system-dependent initialization steps occur
including the calling of constructor functions, even if the library
is otherwise unused.