Add basic support for BTF debug info
BFD library gains foundational support for BPF Type Format (BTF) debug information.
This commit introduces initial support for the BPF Type Format (BTF) into the BFD library. It includes the necessary data structure definitions and helper functions to decode BTF information. The new include/btf.h file, derived from GCC’s version and based on Linux kernel definitions, ensures synchronization with related tools.
In Details
The BFD library now incorporates BTF decoding capabilities, crucial for BPF (Berkeley Packet Filter) development. This involves adding BTF data structures and parsing routines within BFD, aiming to maintain parity with GCC's BTF implementation. This enhancement is relevant for developers working with BPF tooling and kernel modules that utilize BTF for type information.
- BFD
- The Binary File Descriptor library is a layer of abstraction in GNU Binutils that provides a common interface to various object file formats.
- BTF
- BPF Type Format is a data structure format used to describe type information for BPF programs and related data structures, primarily within the Linux kernel.