Lines Matching full:elf
34 /* Get the ELF types. */
35 #include <elf.h>
44 ELF_T_EHDR, /* ELF header. */
75 unsigned int d_version; /* ELF version. */
107 /* Flags for the ELF structures. */
125 ELF_K_ELF, /* ELF file. */
153 /* Descriptor for the ELF file. */
154 typedef struct Elf Elf; typedef
156 /* Descriptor for ELF file section. */
164 /* Return descriptor for ELF file to work according to CMD. */
165 extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref);
167 /* Create a clone of an existing ELF descriptor. */
168 extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd);
171 extern Elf *elf_memory (char *__image, size_t __size);
174 extern Elf_Cmd elf_next (Elf *__elf);
176 /* Free resources allocated for ELF. */
177 extern int elf_end (Elf *__elf);
179 /* Update ELF descriptor and write file to disk. */
180 extern loff_t elf_update (Elf *__elf, Elf_Cmd __cmd);
182 /* Determine what kind of file is associated with ELF. */
183 extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
186 extern loff_t elf_getbase (Elf *__elf);
190 extern char *elf_getident (Elf *__elf, size_t *__nbytes);
193 extern Elf32_Ehdr *elf32_getehdr (Elf *__elf);
195 extern Elf64_Ehdr *elf64_getehdr (Elf *__elf);
197 /* Create ELF header if none exists. */
198 extern Elf32_Ehdr *elf32_newehdr (Elf *__elf);
200 extern Elf64_Ehdr *elf64_newehdr (Elf *__elf);
202 /* Get the number of program headers in the ELF file. If the file uses
203 more headers than can be represented in the e_phnum field of the ELF
206 extern int elf_getphdrnum (Elf *__elf, size_t *__dst);
209 extern Elf32_Phdr *elf32_getphdr (Elf *__elf);
211 extern Elf64_Phdr *elf64_getphdr (Elf *__elf);
213 /* Create ELF program header. */
214 extern Elf32_Phdr *elf32_newphdr (Elf *__elf, size_t __cnt);
216 extern Elf64_Phdr *elf64_newphdr (Elf *__elf, size_t __cnt);
220 extern Elf_Scn *elf_getscn (Elf *__elf, size_t __index);
223 extern Elf_Scn *elf32_offscn (Elf *__elf, Elf32_Off __offset);
225 extern Elf_Scn *elf64_offscn (Elf *__elf, Elf64_Off __offset);
231 extern Elf_Scn *elf_nextscn (Elf *__elf, Elf_Scn *__scn);
234 extern Elf_Scn *elf_newscn (Elf *__elf);
240 /* Get the number of sections in the ELF file. If the file uses more
241 sections than can be represented in the e_shnum field of the ELF
244 extern int elf_getshdrnum (Elf *__elf, size_t *__dst);
248 extern int elf_getshnum (Elf *__elf, size_t *__dst)
252 /* Get the section index of the section header string table in the ELF
254 the ELF header the information from the sh_link field in the zeroth
256 extern int elf_getshdrstrndx (Elf *__elf, size_t *__dst);
260 extern int elf_getshstrndx (Elf *__elf, size_t *__dst)
270 /* Set or clear flags for ELF file. */
271 extern unsigned int elf_flagelf (Elf *__elf, Elf_Cmd __cmd,
273 /* Similarly for the ELF header. */
274 extern unsigned int elf_flagehdr (Elf *__elf, Elf_Cmd __cmd,
276 /* Similarly for the ELF program header. */
277 extern unsigned int elf_flagphdr (Elf *__elf, Elf_Cmd __cmd,
279 /* Similarly for the given ELF section. */
282 /* Similarly for the given ELF data. */
285 /* Similarly for the given ELF section header. */
302 elf_end (ELF) is called. */
303 extern Elf_Data *elf_getdata_rawchunk (Elf *__elf,
309 extern char *elf_strptr (Elf *__elf, size_t __index, size_t __offset);
313 extern Elf_Arhdr *elf_getarhdr (Elf *__elf);
315 /* Return offset in archive for current file ELF. */
316 extern loff_t elf_getaroff (Elf *__elf);
319 extern size_t elf_rand (Elf *__elf, size_t __offset);
322 extern Elf_Arsym *elf_getarsym (Elf *__elf, size_t *__narsyms);
325 /* Control ELF descriptor. */
326 extern int elf_cntl (Elf *__elf, Elf_Cmd __cmd);
329 extern char *elf_rawfile (Elf *__elf, size_t *__nbytes);
333 in the external representation. The binary class is taken from ELF.
334 The result is based on version VERSION of the ELF standard. */
345 by ELF to their memory representation. */
353 represented by ELF file representation. */
372 /* Coordinate ELF library and application versions. */
387 /* Compute simple checksum from permanent parts of the ELF file. */
388 extern long int elf32_checksum (Elf *__elf);
390 extern long int elf64_checksum (Elf *__elf);