mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
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. kldxref(8) is modified to link against the libkldelf library. Sponsored by: Juniper Networks, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D46719
21 lines
246 B
Makefile
21 lines
246 B
Makefile
.include <bsd.own.mk>
|
|
|
|
PACKAGE= runtime
|
|
LIB= kldelf
|
|
PRIVATELIB= yes
|
|
|
|
SRCS= ef.c \
|
|
ef_obj.c \
|
|
elf.c \
|
|
ef_aarch64.c \
|
|
ef_arm.c \
|
|
ef_amd64.c \
|
|
ef_i386.c \
|
|
ef_mips.c \
|
|
ef_powerpc.c \
|
|
ef_riscv.c
|
|
WARNS?= 2
|
|
|
|
LIBADD= elf
|
|
|
|
.include <bsd.lib.mk>
|