3 #include <libelf/libelf.h>
4 #include <libelf/gelf.h>
6 #include <libelfu/libelfu.h>
9 char* elfu_eScnName(Elf *e, Elf_Scn *scn)
14 if (elf_getshdrstrndx(e, &shstrndx) != 0) {
18 if (gelf_getshdr(scn, &shdr) != &shdr) {
22 /* elf_strptr returns NULL if there was an error */
23 return elf_strptr(e, shstrndx, shdr.sh_name);