projects
/
centaur.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
43abb132acdda66ccc9dba96439a9f4a3391505f
[centaur.git]
/
src
/
generic
/
scnSize.c
1
#include <assert.h>
2
#include <sys/types.h>
3
#include <libelf/gelf.h>
4
#include <libelfu/libelfu.h>
5
6
7
8
size_t elfu_gScnSizeFile(const GElf_Shdr *shdr)
9
{
10
assert(shdr);
11
12
return shdr->sh_type == SHT_NOBITS ? 0 : shdr->sh_size;
13
}