Lines Matching defs:Elf
55 /* Get the ELF types. */
56 #include <elf.h>
65 ELF_T_EHDR, /* ELF header. */
96 unsigned int d_version; /* ELF version. */
134 /* Flags for the ELF structures. */
152 ELF_K_ELF, /* ELF file. */
186 /* Descriptor for the ELF file. */
187 typedef struct Elf Elf;
189 /* Descriptor for ELF file section. */
197 /* Return descriptor for ELF file to work according to CMD. */
198 extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref);
200 /* Create a clone of an existing ELF descriptor. */
201 extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd);
204 extern Elf *elf_memory (char *__image, size_t __size);
207 extern Elf_Cmd elf_next (Elf *__elf);
209 /* Free resources allocated for ELF. */
210 extern int elf_end (Elf *__elf);
212 /* Update ELF descriptor and write file to disk. */
215 extern off_t elf_update (Elf *__elf, Elf_Cmd __cmd);
221 /* Determine what kind of file is associated with ELF. */
222 extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
227 extern loff_t elf_getbase (Elf *__elf);
229 extern off_t elf_getbase (Elf *__elf);
235 extern char *elf_getident (Elf *__elf, size_t *__nbytes);
238 extern Elf32_Ehdr *elf32_getehdr (Elf *__elf);
240 extern Elf64_Ehdr *elf64_getehdr (Elf *__elf);
242 /* Create ELF header if none exists. */
243 extern Elf32_Ehdr *elf32_newehdr (Elf *__elf);
245 extern Elf64_Ehdr *elf64_newehdr (Elf *__elf);
248 extern Elf32_Phdr *elf32_getphdr (Elf *__elf);
250 extern Elf64_Phdr *elf64_getphdr (Elf *__elf);
252 /* Create ELF program header. */
253 extern Elf32_Phdr *elf32_newphdr (Elf *__elf, size_t __cnt);
255 extern Elf64_Phdr *elf64_newphdr (Elf *__elf, size_t __cnt);
259 extern Elf_Scn *elf_getscn (Elf *__elf, size_t __index);
262 extern Elf_Scn *elf32_offscn (Elf *__elf, Elf32_Off __offset);
264 extern Elf_Scn *elf64_offscn (Elf *__elf, Elf64_Off __offset);
270 extern Elf_Scn *elf_nextscn (Elf *__elf, Elf_Scn *__scn);
273 extern Elf_Scn *elf_newscn (Elf *__elf);
279 /* Get the number of sections in the ELF file. If the file uses more
280 sections than can be represented in the e_shnum field of the ELF
283 extern int elf_getshnum (Elf *__elf, size_t *__dst);
286 /* Get the section index of the section header string table in the ELF
288 the ELF header the information from the sh_link field in the zeroth
290 extern int elf_getshstrndx (Elf *__elf, size_t *__dst);
299 /* Set or clear flags for ELF file. */
300 extern unsigned int elf_flagelf (Elf *__elf, Elf_Cmd __cmd,
302 /* Similarly for the ELF header. */
303 extern unsigned int elf_flagehdr (Elf *__elf, Elf_Cmd __cmd,
305 /* Similarly for the ELF program header. */
306 extern unsigned int elf_flagphdr (Elf *__elf, Elf_Cmd __cmd,
308 /* Similarly for the given ELF section. */
311 /* Similarly for the given ELF data. */
314 /* Similarly for the given ELF section header. */
331 elf_end (ELF) is called. */
334 extern Elf_Data *elf_getdata_rawchunk (Elf *__elf,
338 extern Elf_Data *elf_getdata_rawchunk (Elf *__elf,
346 extern char *elf_strptr (Elf *__elf, size_t __index, size_t __offset);
350 extern Elf_Arhdr *elf_getarhdr (Elf *__elf);
352 /* Return offset in archive for current file ELF. */
355 extern loff_t elf_getaroff (Elf *__elf);
357 extern off_t elf_getaroff (Elf *__elf);
362 extern size_t elf_rand (Elf *__elf, size_t __offset);
365 extern Elf_Arsym *elf_getarsym (Elf *__elf, size_t *__narsyms);
368 /* Control ELF descriptor. */
369 extern int elf_cntl (Elf *__elf, Elf_Cmd __cmd);
372 extern char *elf_rawfile (Elf *__elf, size_t *__nbytes);
376 in the external representation. The binary class is taken from ELF.
377 The result is based on version VERSION of the ELF standard. */
388 by ELF to their memory representation. */
396 represented by ELF file representation. */
415 /* Coordinate ELF library and application versions. */
430 /* Compute simple checksum from permanent parts of the ELF file. */
431 extern long int elf32_checksum (Elf *__elf);
433 extern long int elf64_checksum (Elf *__elf);