opnsense-src/lib
Konstantin Belousov c8da4f07d7 Allow the NULL, RTLD_SELF and RTLD_NEXT handles to work with dlfunc(3).
dlfunc() called dlsym() to do the work, and dlsym() determines the dso
that originating the call by the return address. Due to this, dlfunc()
operated as if the caller is always the libc.

To fix this, move the dlfunc() to rtld, where it can call the internal
implementation of dlsym, and still correctly fetch return address.
Provide usual weak stub for the symbol from libc for static binaries.
dlfunc is put to FBSD_1.0 symver namespace in the ld.so export to
override dlfunc@FBSD_1.0 weak symbol, exported by libc.

Reported, analyzed and tested by:	Tijl Coosemans <tijl ulyssis org>
PR: standards/133339
Reviewed by:	kan
2009-04-03 19:17:23 +00:00
..
bind Updates for version 9.4.3 2008-12-23 22:50:39 +00:00
csu Fix build when WITH_SSP is set explicitly. 2009-02-21 15:04:31 +00:00
libalias
libarchive Hack: *Temporarily* disable reading extended attributes from disk, as 2009-03-11 05:11:57 +00:00
libauditd Merge OpenBSM alpha 4 from OpenBSM vendor branch to head, both 2008-12-31 11:12:24 +00:00
libautofs
libbegemot
libbluetooth Add Bluetooth compatibility shims. Inspired by Linux BlueZ and NetBSD. 2009-03-06 23:30:07 +00:00
libbsm Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, both 2009-01-14 10:44:16 +00:00
libbsnmp
libbz2
libc Allow the NULL, RTLD_SELF and RTLD_NEXT handles to work with dlfunc(3). 2009-04-03 19:17:23 +00:00
libc_r Honor WITHOUT_INSTALLLIB in some places. 2009-02-13 16:51:36 +00:00
libcalendar
libcam Supply a valid Connect ID when issuing XPT_DEV_MATCH, which 2008-10-27 21:46:58 +00:00
libcom_err
libcompat Add a missing parameter to ruserpass(). According to C99 6.9.1p7 2009-02-26 17:46:54 +00:00
libcrypt
libdevinfo
libdevstat
libdisk - Sanitize disk parameters retrieved from GEOM, as they are not guaranteed to 2009-02-09 21:34:06 +00:00
libdwarf Add a BSD licensed DWARF library for use by the DTrace clients. 2008-05-22 02:14:23 +00:00
libedit
libelf Don't need to set symbol, default value is OK. 2009-03-12 04:44:09 +00:00
libexpat Update the lib/expat tree for the new v2.0.1 expat import. The bsdxml.h 2008-05-08 14:01:42 +00:00
libfetch 1. Update fetch to consistently return 1 on error, as the man page states, 2008-12-17 18:00:18 +00:00
libftpio Don't set the _file member of the FILE when opening a FTP connection. 2008-05-08 20:05:30 +00:00
libgeom - Update the libgeom manpage with a description of g_device_path and 2008-09-08 06:27:00 +00:00
libgpib
libgssapi Add an implementation of the RPCSEC_GSS authentication protocol for RPC. This 2008-08-06 14:02:05 +00:00
libipsec
libipx
libkiconv
libkse Honor WITHOUT_INSTALLLIB in some places. 2009-02-13 16:51:36 +00:00
libkvm MFp4: 2008-11-29 14:32:14 +00:00
libmagic Don't make the MIME magic any longer. 2009-01-02 03:38:21 +00:00
libmd Remove reference to no longer existing document. 2009-01-09 11:45:13 +00:00
libmemstat
libmilter
libmp Rename all symbols in libmp(3) to mp_*, just like Solaris. 2009-02-26 21:43:15 +00:00
libncp
libnetgraph
libngatm
libopie
libpam Don't try to auto-detect dynamic linking; it fails on mips. The Makefile 2009-02-17 16:35:19 +00:00
libpcap Fix typo in comment. 2009-03-22 01:24:32 +00:00
libpmc Allow compile from c++ for libpmc 2009-03-24 22:35:05 +00:00
libproc Merge latest DTrace changes from Perforce. 2008-11-05 19:35:43 +00:00
libradius
librpcsec_gss Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
librpcsvc Use ANSI function declarations in librpcsvc. 2009-02-26 20:32:11 +00:00
librt atomic_fetchadd_int works on unsigned quantities - change 2008-08-15 21:08:48 +00:00
libsbuf
libsdp
libsm
libsmb
libsmdb
libsmutil
libstand Fix an off-by-one buffer overflow in ngets(). 2009-03-31 14:30:46 +00:00
libtacplus
libtelnet Rename all symbols in libmp(3) to mp_*, just like Solaris. 2009-02-26 21:43:15 +00:00
libthr Turn on nodelete linker flag because libthr can not be unloaded safely, 2009-03-31 02:50:18 +00:00
libthread_db libc_r_* library is no more required, so just axe it. 2009-03-05 18:27:16 +00:00
libufs Bail out when memory allocation is failed, rather than referencing 2009-04-02 17:16:39 +00:00
libugidfw
libusb Add prototypes for libusb20_be_[gs]et_template. 2009-03-17 21:20:39 +00:00
libusbhid Fix HID_COMPAT7 handling around the USB_GET_REPORT_DESC ioctl. 2009-02-27 15:30:42 +00:00
libutil Include param.h instead of types.h when using user.h. Otherwise there is 2008-12-27 11:12:23 +00:00
libvgl
libwrap
liby
libypclnt
libz
msun Namespace: scalb() is withdrawn from POSIX. 2009-03-14 18:58:53 +00:00
ncurses - Update ncurses to 5.7-20081102 (5.7 release) and build glue 2008-11-15 09:23:48 +00:00
Makefile Commit missed file in r189587, update directory name for libusb. 2009-03-09 17:38:14 +00:00
Makefile.inc