12 #include <elfutils/libdw.h>
13 #include <elfutils/version.h>
14 #ifndef _ELFUTILS_PREREQ
20 Dwarf
*dbg
= dwarf_begin
(0, DWARF_C_READ
);
31 Elf
*elf
= elf_begin
(0, ELF_C_READ
, 0);
37 #include <gnu/libc-version.h>
41 const char
*version
= gnu_get_libc_version
();
46 define SOURCE_ELF_MMAP
50 Elf
*elf
= elf_begin
(0, ELF_C_READ_MMAP
, 0);
63 return newtFinished
();
69 define SOURCE_PERL_EMBED
82 define SOURCE_PYTHON_VERSION
84 #if PY_VERSION_HEX >= 0x03000000
89 define SOURCE_PYTHON_EMBED
104 bfd_demangle
(0, 0, 0);
109 define SOURCE_CPLUS_DEMANGLE
110 extern char
*cplus_demangle
(const char
*, int
);
114 cplus_demangle
(0, 0);
119 define SOURCE_STRLCPY
121 extern size_t strlcpy
(char
*dest
, const char
*src
, size_t size
);
125 strlcpy
(NULL
, NULL
, 0);