summaryrefslogtreecommitdiff
path: root/include/libelfu
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-05-27 03:18:00 +0100
committernorly <ny-git@enpas.org>2013-05-27 03:18:00 +0100
commit29dfd585e8f8d87d978259919f74815493899f01 (patch)
tree570de3bd6861dfb085234a1ab0440feb77fbf804 /include/libelfu
parentf4d5a2e8d569d68fe4fa536e4ce9c3aee7c9285c (diff)
Turn elfu_gScnSizeFile into a macro
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