summaryrefslogtreecommitdiff
path: root/include/libelfu/elfops.h
blob: 25575a102434c0647085169b34a6237cbcecaaf3 (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.h>
#include <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