projects
/
centaur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Turn elfu_gScnSizeFile into a macro
[centaur.git]
/
include
/
libelfu
/
generic.h
diff --git
a/include/libelfu/generic.h
b/include/libelfu/generic.h
index 09d2ffc651f0d372815027c5d72896fae5068d6b..c74981aa99eadc91481f1e00b188a64ca040bd7e 100644
(file)
--- 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