summaryrefslogtreecommitdiff
path: root/include/libelfu
diff options
context:
space:
mode:
Diffstat (limited to 'include/libelfu')
-rw-r--r--include/libelfu/generic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libelfu/generic.h b/include/libelfu/generic.h
index 09d2ffc..c74981a 100644
--- a/include/libelfu/generic.h
+++ b/include/libelfu/generic.h
@@ -17,8 +17,10 @@
+#define SCNFILESIZE(shdr) ((shdr)->sh_type == SHT_NOBITS ? 0 : (shdr)->sh_size)
+
+
int elfu_gPhdrContainsScn(GElf_Phdr *phdr, GElf_Shdr *shdr);
-size_t elfu_gScnSizeFile(const GElf_Shdr *shdr);
#endif