summaryrefslogtreecommitdiff
path: root/include/libelfu/elfops.h
blob: b5e8a3f1830dfbd8596c447ab288773d6087547c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __LIBELFU_ELFOPS_H_
#define __LIBELFU_ELFOPS_H_

#include <libelf/libelf.h>
#include <libelf/gelf.h>

#include <libelfu/types.h>


   char* elfu_eScnName(Elf *e, Elf_Scn *scn);
Elf_Scn* elfu_eScnByName(Elf *e, char *name);

     int elfu_ePhdrContainsScn(GElf_Phdr *phdr, GElf_Shdr *shdr);
Elf_Scn* elfu_eScnFirstInSegment(Elf *e, GElf_Phdr *phdr);
Elf_Scn* elfu_eScnLastInSegment(Elf *e, GElf_Phdr *phdr);

void elfu_ePhdrFixupSelfRef(Elf *e);

#endif