4 #include <libelfu/libelfu.h>
7 char* elfu_sectionName(Elf *e, Elf_Scn *scn)
12 if (elf_getshdrstrndx(e, &shstrndx) != 0) {
16 if (gelf_getshdr(scn, &shdr) != &shdr) {
20 /* elf_strptr returns NULL if there was an error */
21 return elf_strptr(e, shstrndx, shdr.sh_name);