X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=elf%2Felf.h;h=60d26aac239a418c7593522acffac3a3df15c543;hb=db5b9b705b37e49304260cdf78a4422971efed24;hp=ad2d03ed98ebe085c23108d7e7fcfd6230e7b273;hpb=227b2bc49acc70a5c3a7bc5fcff665c523816b83;p=zpackage diff --git a/elf/elf.h b/elf/elf.h index ad2d03e..60d26aa 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -569,4 +569,14 @@ typedef struct { #define ELFOSABI_CLOUDABI 17 #define ELFOSABI_OPENVOS 18 +/* libelf.c */ +Elf64_Ehdr *libelf_header(void *elf); +Elf64_Shdr *libelf_shdr(void *elf, int n); +Elf64_Shdr *libelf_sht_strtab(void *elf); +char *libelf_sectionname(Elf64_Shdr *section, Elf64_Shdr *strtab); +Elf64_Shdr *libelf_section_n(void *elf, int n); +Elf64_Shdr *libelf_section(void *elf, unsigned int type); +int libelf_type(void *elf); +int libelf_iself(void *elf); + #endif