dlopen.3 (98e0ffaefb0f241cda3a72395d3be04192ae0d47) dlopen.3 (99ac8154ffa847ae709a193d014bd66d8cdfabb9)
1.\" This source code is a product of Sun Microsystems, Inc. and is provided
2.\" for unrestricted use provided that this legend is included on all tape
3.\" media and as a part of the software program in whole or part. Users
4.\" may copy or modify this source code without charge, but are not authorized
5.\" to license or distribute it to anyone else except as part of a product or
6.\" program developed by the user.
7.\"
8.\" THIS PROGRAM CONTAINS SOURCE CODE COPYRIGHTED BY SUN MICROSYSTEMS, INC.

--- 18 unchanged lines hidden (view full) ---

27.\" 2550 Garcia Avenue
28.\" Mountain View, California 94043
29.\"
30.\" Copyright (c) 1991 Sun Microsystems, Inc.
31.\"
32.\" @(#) dlopen.3 1.6 90/01/31 SMI
33.\" $FreeBSD$
34.\"
1.\" This source code is a product of Sun Microsystems, Inc. and is provided
2.\" for unrestricted use provided that this legend is included on all tape
3.\" media and as a part of the software program in whole or part. Users
4.\" may copy or modify this source code without charge, but are not authorized
5.\" to license or distribute it to anyone else except as part of a product or
6.\" program developed by the user.
7.\"
8.\" THIS PROGRAM CONTAINS SOURCE CODE COPYRIGHTED BY SUN MICROSYSTEMS, INC.

--- 18 unchanged lines hidden (view full) ---

27.\" 2550 Garcia Avenue
28.\" Mountain View, California 94043
29.\"
30.\" Copyright (c) 1991 Sun Microsystems, Inc.
31.\"
32.\" @(#) dlopen.3 1.6 90/01/31 SMI
33.\" $FreeBSD$
34.\"
35.Dd February 14, 2015
35.Dd July 7, 2017
36.Dt DLOPEN 3
37.Os
38.Sh NAME
39.Nm dlopen ,
40.Nm fdlopen ,
41.Nm dlsym ,
42.Nm dlfunc ,
43.Nm dlerror ,

--- 328 unchanged lines hidden (view full) ---

372ELF executables need to be linked
373using the
374.Fl export-dynamic
375option to
376.Xr ld 1
377for symbols defined in the executable to become visible to
378.Fn dlsym .
379.Pp
36.Dt DLOPEN 3
37.Os
38.Sh NAME
39.Nm dlopen ,
40.Nm fdlopen ,
41.Nm dlsym ,
42.Nm dlfunc ,
43.Nm dlerror ,

--- 328 unchanged lines hidden (view full) ---

372ELF executables need to be linked
373using the
374.Fl export-dynamic
375option to
376.Xr ld 1
377for symbols defined in the executable to become visible to
378.Fn dlsym .
379.Pp
380Other ELF platforms require linking with
381.Lb libdl
382to provide
383.Fn dlopen
384and other functions.
385.Fx
386does not require linking with the library, but supports it for compatibility.
387.Pp
380In previous implementations, it was necessary to prepend an underscore
381to all external symbols in order to gain symbol
382compatibility with object code compiled from the C language.
383This is
384still the case when using the (obsolete)
385.Fl aout
386option to the C language compiler.
387.Sh ERRORS

--- 21 unchanged lines hidden ---
388In previous implementations, it was necessary to prepend an underscore
389to all external symbols in order to gain symbol
390compatibility with object code compiled from the C language.
391This is
392still the case when using the (obsolete)
393.Fl aout
394option to the C language compiler.
395.Sh ERRORS

--- 21 unchanged lines hidden ---