Home | History | Annotate | Download | only in libelf

Lines Matching defs:Elf

22 /* Get the ELF types.  */
23 #include <elf.h>
32 ELF_T_EHDR, /* ELF header. */
61 unsigned int d_version; /* ELF version. */
93 /* Flags for the ELF structures. */
111 ELF_K_ELF, /* ELF file. */
139 /* Descriptor for the ELF file. */
140 typedef struct Elf Elf;
142 /* Descriptor for ELF file section. */
150 /* Return descriptor for ELF file to work according to CMD. */
151 extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref);
153 /* Create a clone of an existing ELF descriptor. */
154 extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd);
157 extern Elf *elf_memory (char *__image, size_t __size);
160 extern Elf_Cmd elf_next (Elf *__elf);
162 /* Free resources allocated for ELF. */
163 extern int elf_end (Elf *__elf);
165 /* Update ELF descriptor and write file to disk. */
166 extern off_t elf_update (Elf *__elf, Elf_Cmd __cmd);
168 /* Determine what kind of file is associated with ELF. */
169 extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
172 extern off_t elf_getbase (Elf *__elf);
176 extern char *elf_getident (Elf *__elf, size_t *__ptr);
179 extern Elf32_Ehdr *elf32_getehdr (Elf *__elf);
181 extern Elf64_Ehdr *elf64_getehdr (Elf *__elf);
183 /* Create ELF header if none exists. */
184 extern Elf32_Ehdr *elf32_newehdr (Elf *__elf);
186 extern Elf64_Ehdr *elf64_newehdr (Elf *__elf);
189 extern Elf32_Phdr *elf32_getphdr (Elf *__elf);
191 extern Elf64_Phdr *elf64_getphdr (Elf *__elf);
193 /* Create ELF program header. */
194 extern Elf32_Phdr *elf32_newphdr (Elf *__elf, size_t __cnt);
196 extern Elf64_Phdr *elf64_newphdr (Elf *__elf, size_t __cnt);
200 extern Elf_Scn *elf_getscn (Elf *__elf, size_t __index);
206 extern Elf_Scn *elf_nextscn (Elf *__elf, Elf_Scn *__scn);
209 extern Elf_Scn *elf_newscn (Elf *__elf);
211 /* Get the number of sections in the ELF file. If the file uses more
212 sections than can be represented in the e_shnum field of the ELF
215 extern int elf_getshnum (Elf *__elf, size_t *__dst);
218 /* Get the section index of the section header string table in the ELF
220 the ELF header the information from the sh_link field in the zeroth
222 extern int elf_getshstrndx (Elf *__elf, size_t *__dst);
231 /* Set or clear flags for ELF file. */
232 extern unsigned int elf_flagelf (Elf *__elf, Elf_Cmd __cmd,
234 /* Similarly for the ELF header. */
235 extern unsigned int elf_flagehdr (Elf *__elf, Elf_Cmd __cmd,
237 /* Similarly for the ELF program header. */
238 extern unsigned int elf_flagphdr (Elf *__elf, Elf_Cmd __cmd,
240 /* Similarly for the given ELF section. */
243 /* Similarly for the given ELF data. */
246 /* Similarly for the given ELF section header. */
263 extern char *elf_strptr (Elf *__elf, size_t __index, size_t __offset);
267 extern Elf_Arhdr *elf_getarhdr (Elf *__elf);
270 extern size_t elf_rand (Elf *__elf, size_t __offset);
273 extern Elf_Arsym *elf_getarsym (Elf *__elf, size_t *__ptr);
276 /* Control ELF descriptor. */
277 extern int elf_cntl (Elf *__elf, Elf_Cmd __cmd);
280 extern char *elf_rawfile (Elf *__elf, size_t *__ptr);
284 in the external representation. The binary class is taken from ELF.
285 The result is based on version VERSION of the ELF standard. */
296 by ELF to their memory representation. */
304 represented by ELF file representation. */
323 /* Coordinate ELF library and application versions. */
334 /* Compute simple checksum from permanent parts of the ELF file. */
335 extern long int elf32_checksum (Elf *__elf);
337 extern long int elf64_checksum (Elf *__elf);