opnsense-src/lib
Ka Ho Ng 968bcca262 libkldelf: add a private library for kernel/kld-related ELF parsing
The libkldelf library was originally a part of kldxref(8). It exposed
ELF parsing helpers specialized in parsing KLDs and the kernel
executable. The library can be used to read metadata such as linker_set,
mod_depend, mod_version and PNP match info, and raw data from the ELF.

To promote the reuse of the facilities the ELF parsing code is separated
from kldxref(8) into a new private library.

For now, libkldelf's source files will be compiled into kldxref(8)
directly if kldxref is built during bootstrapping phase. The reason is
linking kldxref(8) against the libkldelf static library has an unwanted
side effect which renders the linker sets inside the libkldelf
implementation empty if the static library is not build by ld -r all the
.o files into a single .o before producing the static library.

Sponsored by:	Juniper Networks, Inc.
Reviewed by:	markj
Suggested by:	jrtc27, markj
Differential Revision:	https://reviews.freebsd.org/D46719
2024-10-18 20:20:13 +00:00
..
atf Update Makefile.depend files 2024-10-14 10:26:17 -07:00
clang lib/clang: Commit cleaned-up workaround for building on RISC-V 2024-10-18 13:59:48 +01:00
csu csu: add include path to CFLAGS to be able to find libsys.h 2024-09-19 15:36:38 -04:00
geom lib/geom: remove redundant libraries and objects 2024-10-15 13:34:45 +02:00
googletest Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
lib9p Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
lib80211 lib80211: Consistently use item count as the first argument to calloc 2024-07-19 13:06:16 -04:00
libalias Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libarchive libarchive: fix thread autodetermination for zstd compression format 2024-05-03 15:39:37 +02:00
libauditd package: move OpenBSM auditing into its own package 2024-04-28 22:33:06 -06:00
libbe Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libbearssl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libbegemot Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libblacklist Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libblocksruntime Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libbluetooth Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
libbsddialog Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libbsdstat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libbsm package: move OpenBSM auditing into its own package 2024-04-28 22:33:06 -06:00
libbsnmp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libbz2 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libc libc/csu: Support IFUNCs on riscv 2024-10-18 19:14:58 +01:00
libc++ Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libc++experimental Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libc_nonshared Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libcalendar Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libcam Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libcapsicum manuals: Fix "skipping end of block" .Ed errors 2024-10-03 14:49:23 -03:00
libcasper manuals: Misc syntax fixes 2024-10-07 15:41:14 -03:00
libcbor Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libclang_rt Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libcom_err Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libcompat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libcompiler_rt Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libcrypt libmd, kern, stand: consolidate md5 implementations (NFC) 2024-09-29 22:34:18 -05:00
libcuse Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
libcxxrt libcxxrt: Add a stub implementation of __cxa_call_terminate 2024-08-21 13:37:48 -04:00
libdevctl manuals: Fix some "missing section argument" 2024-10-15 17:20:55 -03:00
libdevdctl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libdevinfo Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libdevstat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libdiff diff: Nits in tests. 2024-05-20 16:27:50 +02:00
libdl Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libdpv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libdwarf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libedit Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libefivar libefivar: Fix AcpiEx print logic 2024-09-06 12:34:33 -06:00
libelf Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libelftc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libevent1 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libexecinfo Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libexpat lib/libexpat: update build config for 2.6.3 2024-09-28 07:23:32 -07:00
libfdt libfdt: Make an internal FDT library available 2024-03-21 01:05:05 -04:00
libfetch libfetch: don't include fragments in HTTP requests 2024-08-21 12:35:27 +00:00
libfido2 Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libfigpar Refactor error handling in lseek operations 2024-09-21 05:25:15 -06:00
libgcc_eh Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libgcc_s Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libgeom libgeom: Avoid fixed remappings of the devstat device 2024-08-19 16:02:59 +00:00
libgpio Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libgssapi Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libiconv_modules Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libifconfig Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libipsec libipsec: decode SADB_X_EXT_IF_HW_OFFL 2024-07-12 06:29:31 +03:00
libipt Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libiscsiutil lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
libjail manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
libkiconv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libkldelf libkldelf: add a private library for kernel/kld-related ELF parsing 2024-10-18 20:20:13 +00:00
libkvm Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libldns Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
liblua Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
liblutok Updated and new Makefile.depend files 2024-10-16 09:26:29 -07:00
liblzma Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libmagic Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libmd libmd: re-apply masking of _Transform names 2024-09-30 14:59:31 -05:00
libmemstat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libmilter Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libmixer mixer.3: Fix mixer_get_mode() description 2024-08-05 14:13:44 +03:00
libmp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libmt Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libnetbsd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libnetgraph lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
libnetmap Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libnv libnv: add tests to verify potential overflow issues 2024-09-04 13:43:16 +02:00
libnvmf Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libomp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libopenbsd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libopencsd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libpam manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
libpathconv manuals: Fix "missing end of block" errors 2024-10-07 15:40:58 -03:00
libpcap libpcap: Add changes missed in update to 1.10.5 2024-09-14 14:35:58 -03:00
libpe Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libpfctl pf: convert DIOCGETSRCNODES to netlink 2024-10-15 16:29:11 +02:00
libpjdlog lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
libpmc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libpmcstat lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
libproc Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
libprocstat libprocstat: add procstat_getrlimitusage() 2024-09-27 18:02:29 +03:00
libradius radlib: fix a memory leak in is_valid_request 2024-06-04 19:40:55 -07:00
libregex Update Makefile.depend files 2024-10-14 10:26:17 -07:00
librpcsec_gss Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
librpcsvc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
librss manuals: Misc syntax fixes 2024-10-08 16:13:39 -03:00
librt Update Makefile.depend files 2024-10-14 10:26:17 -07:00
librtld_db Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
libsbuf Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libsdp Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
libsecureboot Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libsm Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libsmb Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libsmdb Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libsmutil Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libsqlite3 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libssp Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libssp_nonshared Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libstats Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libstdbuf Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libstdthreads Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libsys thr_kill(2): fix title 2024-10-15 17:44:52 -03:00
libsysdecode manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
libtacplus lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
libtelnet Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libthr manuals: Fix some "missing section argument" 2024-10-15 17:20:55 -03:00
libthread_db Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
libucl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libufs Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libugidfw Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libulog Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libunbound unbound: Vendor import 1.22.0 2024-10-18 07:14:21 -07:00
libusb libusb: claim to be version 1.0.16 2024-06-28 12:18:34 -04:00
libusbhid libusbhid: add missing include guards 2024-06-06 10:09:05 -04:00
libutil ftime.3: fix typo in spelling of libutil 2024-10-18 15:50:24 +03:00
libveriexec manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
libvgl lib/libvgl/main.c: remove an extra semicolon 2024-02-02 18:35:01 -07:00
libvmmapi libvmmapi: Conditionalize compilation of some functions 2024-04-10 11:17:56 -04:00
libwrap Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libxo Update Makefile.depend files 2024-10-14 10:26:17 -07:00
liby Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libypclnt Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libz Update Makefile.depend files 2024-10-14 10:26:17 -07:00
libzstd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
msun Update Makefile.depend files 2024-10-14 10:26:17 -07:00
ncurses Update Makefile.depend files 2024-10-14 10:26:17 -07:00
nss_tacplus nss_tacplus: Provide dummy setpwent(), getpwent_r(), endpwent(). 2023-08-31 07:49:57 +00:00
ofed Update Makefile.depend files 2024-10-14 10:26:17 -07:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile libkldelf: add a private library for kernel/kld-related ELF parsing 2024-10-18 20:20:13 +00:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00