tools/build/feature/test-libelf.c (6 lines of code) (raw):

// SPDX-License-Identifier: GPL-2.0 #include <libelf.h> int main(void) { Elf *elf = elf_begin(0, ELF_C_READ, 0); return (long)elf; }