blob: 2c65ca1984b8d98c784c6bb9905aaa04e2125cea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <assert.h>
#include <sys/types.h>
#include <gelf.h>
#include <libelfu/libelfu.h>
size_t elfu_scnSizeFile(const GElf_Shdr *shdr)
{
assert(shdr);
return shdr->sh_type == SHT_NOBITS ? 0 : shdr->sh_size;
}
|