blob: 250651271a6d04ea5147cf94d6d47e7ed863e386 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef __LIBELFU_LOOKUP_H_
#define __LIBELFU_LOOKUP_H_
#include <libelf.h>
#include <gelf.h>
#include <libelfu/types.h>
char* elfu_sectionName(Elf *e, Elf_Scn *scn);
Elf_Scn* elfu_sectionByName(Elf *e, char *name);
Elf_Scn* elfu_firstSectionInSegment(Elf *e, GElf_Phdr *phdr);
Elf_Scn* elfu_lastSectionInSegment(Elf *e, GElf_Phdr *phdr);
size_t elfu_scnSizeFile(const GElf_Shdr *shdr);
#endif
|