-#include <stdio.h>
#include <stdlib.h>
-
-#include <libelf.h>
-#include <gelf.h>
-
#include <libelfu/libelfu.h>
}
if (shdr.sh_offset == phdr->p_offset
- && elfu_ePhdrContainsScn(phdr, &shdr)) {
+ && PHDR_CONTAINS_SCN_IN_MEMORY(phdr, &shdr)) {
return scn;
}
GElf_Shdr shdr;
if (gelf_getshdr(scn, &shdr) != &shdr) {
- fprintf(stderr, "gelf_getshdr() failed: %s\n", elf_errmsg(-1));
+ ELFU_WARNELF("gelf_getshdr");
continue;
}
- if (elfu_ePhdrContainsScn(phdr, &shdr)) {
+ if (PHDR_CONTAINS_SCN_IN_MEMORY(phdr, &shdr)) {
if (!last) {
last = scn;
} else {