Lines Matching full:elf

35 /* Get the ELF types.  */
36 #include <elf.h>
39 /* Older glibc elf.h might not yet define the ELF compression types. */
73 ELF_T_EHDR, /* ELF header. */
105 unsigned int d_version; /* ELF version. */
137 /* Flags for the ELF structures. */
161 ELF_K_ELF, /* ELF file. */
189 /* Descriptor for the ELF file. */
190 typedef struct Elf Elf; typedef
192 /* Descriptor for ELF file section. */
200 /* Return descriptor for ELF file to work according to CMD. */
201 extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref);
203 /* Create a clone of an existing ELF descriptor. */
204 extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd);
207 extern Elf *elf_memory (char *__image, size_t __size);
210 extern Elf_Cmd elf_next (Elf *__elf);
212 /* Free resources allocated for ELF. */
213 extern int elf_end (Elf *__elf);
215 /* Update ELF descriptor and write file to disk. */
216 extern int64_t elf_update (Elf *__elf, Elf_Cmd __cmd);
218 /* Determine what kind of file is associated with ELF. */
219 extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
222 extern int64_t elf_getbase (Elf *__elf);
226 extern char *elf_getident (Elf *__elf, size_t *__nbytes);
229 extern Elf32_Ehdr *elf32_getehdr (Elf *__elf);
231 extern Elf64_Ehdr *elf64_getehdr (Elf *__elf);
233 /* Create ELF header if none exists. */
234 extern Elf32_Ehdr *elf32_newehdr (Elf *__elf);
236 extern Elf64_Ehdr *elf64_newehdr (Elf *__elf);
238 /* Get the number of program headers in the ELF file. If the file uses
239 more headers than can be represented in the e_phnum field of the ELF
242 extern int elf_getphdrnum (Elf *__elf, size_t *__dst);
245 extern Elf32_Phdr *elf32_getphdr (Elf *__elf);
247 extern Elf64_Phdr *elf64_getphdr (Elf *__elf);
249 /* Create ELF program header. */
250 extern Elf32_Phdr *elf32_newphdr (Elf *__elf, size_t __cnt);
252 extern Elf64_Phdr *elf64_newphdr (Elf *__elf, size_t __cnt);
256 extern Elf_Scn *elf_getscn (Elf *__elf, size_t __index);
259 extern Elf_Scn *elf32_offscn (Elf *__elf, Elf32_Off __offset);
261 extern Elf_Scn *elf64_offscn (Elf *__elf, Elf64_Off __offset);
267 extern Elf_Scn *elf_nextscn (Elf *__elf, Elf_Scn *__scn);
270 extern Elf_Scn *elf_newscn (Elf *__elf);
276 /* Get the number of sections in the ELF file. If the file uses more
277 sections than can be represented in the e_shnum field of the ELF
280 extern int elf_getshdrnum (Elf *__elf, size_t *__dst);
284 extern int elf_getshnum (Elf *__elf, size_t *__dst)
288 /* Get the section index of the section header string table in the ELF
290 the ELF header the information from the sh_link field in the zeroth
292 extern int elf_getshdrstrndx (Elf *__elf, size_t *__dst);
296 extern int elf_getshstrndx (Elf *__elf, size_t *__dst)
362 /* Set or clear flags for ELF file. */
363 extern unsigned int elf_flagelf (Elf *__elf, Elf_Cmd __cmd,
365 /* Similarly for the ELF header. */
366 extern unsigned int elf_flagehdr (Elf *__elf, Elf_Cmd __cmd,
368 /* Similarly for the ELF program header. */
369 extern unsigned int elf_flagphdr (Elf *__elf, Elf_Cmd __cmd,
371 /* Similarly for the given ELF section. */
374 /* Similarly for the given ELF data. */
377 /* Similarly for the given ELF section header. */
397 elf_end (ELF) is called. */
398 extern Elf_Data *elf_getdata_rawchunk (Elf *__elf,
404 extern char *elf_strptr (Elf *__elf, size_t __index, size_t __offset);
408 extern Elf_Arhdr *elf_getarhdr (Elf *__elf);
410 /* Return offset in archive for current file ELF. */
411 extern int64_t elf_getaroff (Elf *__elf);
414 extern size_t elf_rand (Elf *__elf, size_t __offset);
417 extern Elf_Arsym *elf_getarsym (Elf *__elf, size_t *__narsyms);
420 /* Control ELF descriptor. */
421 extern int elf_cntl (Elf *__elf, Elf_Cmd __cmd);
424 extern char *elf_rawfile (Elf *__elf, size_t *__nbytes);
428 in the external representation. The binary class is taken from ELF.
429 The result is based on version VERSION of the ELF standard. */
440 by ELF to their memory representation. */
448 represented by ELF file representation. */
467 /* Coordinate ELF library and application versions. */
482 /* Compute simple checksum from permanent parts of the ELF file. */
483 extern long int elf32_checksum (Elf *__elf);
485 extern long int elf64_checksum (Elf *__elf);