X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=elf%2Felf.h;h=e316a6e4fe57d9dcc09167e8e34c7b0302345d96;hb=HEAD;hp=ad2d03ed98ebe085c23108d7e7fcfd6230e7b273;hpb=227b2bc49acc70a5c3a7bc5fcff665c523816b83;p=zpackage diff --git a/elf/elf.h b/elf/elf.h index ad2d03e..e316a6e 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -569,4 +569,15 @@ 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); +char *libelf_soname(void *elf); + #endif