2 #include <libelfu/libelfu.h>
5 char* elfu_eScnName(Elf *e, Elf_Scn *scn)
10 if (elf_getshdrstrndx(e, &shstrndx) != 0) {
14 if (gelf_getshdr(scn, &shdr) != &shdr) {
18 /* elf_strptr returns NULL if there was an error */
19 return elf_strptr(e, shstrndx, shdr.sh_name);