/build/tools/isprelinked/ |
isprelinked.c | 5 3. fix the determination of the host and ELF-file endianness 17 #include <elf.h> 44 /* Check to see whether the ELF library is current. */ 51 Elf *elf; local 65 elf = elf_begin(fd, ELF_C_READ_MMAP_PRIVATE, NULL); 66 FAILIF_LIBELF(elf == NULL, elf_begin); 68 FAILIF_LIBELF(0 == gelf_getehdr(elf, &elf_hdr), 83 FAILIF_LIBELF(elf_end(elf), elf_end);
|
/external/elfutils/libelf/ |
gelf_getdyn.c | 37 Elf *elf; local 48 elf = data_scn->s->elf; 50 rwlock_rdlock (elf->lock); 55 if (elf->class == ELFCLASS32) 96 rwlock_unlock (elf->lock);
|
gelf_update_shdr.c | 32 Elf *elf; local 37 elf = scn->elf; 38 rwlock_wrlock (elf->lock); 40 if (elf->class == ELFCLASS32) 91 rwlock_unlock (elf->lock);
|
elf_newdata.c | 43 if (scn->elf->class == ELFCLASS32 44 || (offsetof (struct Elf, state.elf32.ehdr) 45 == offsetof (struct Elf, state.elf64.ehdr)) 46 ? scn->elf->state.elf32.ehdr == NULL 47 : scn->elf->state.elf64.ehdr == NULL) 53 rwlock_wrlock (scn->elf->lock); 92 rwlock_unlock (scn->elf->lock);
|
common.h | 35 /* Next try ELF files. */ 38 /* Could be an ELF file. */ 54 /* Allocate an Elf descriptor and fill in the generic information. */ 55 static inline Elf * 57 Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra) 59 Elf *result = (Elf *) calloc (1, sizeof (Elf) + extra); 82 libelf_acquire_all (Elf *elf) [all...] |
elf_getdata.c | 28 #include "elf-knowledge.h" 186 Elf *elf = scn->elf; local 188 if (elf->class == ELFCLASS32) 226 entsize = SH_ENTSIZE_HASH (gelf_getehdr (elf, &ehdr_mem)); 231 entsize = shtype_map[__libelf_version - 1][elf->class - 1][TYPEIDX (type)].size; 233 entsize = shtype_map[0][elf->class - 1][TYPEIDX (type)].size; 249 if (elf->map_address != NULL) 253 if (offset + size > elf->maximum_size 342 Elf *elf; local [all...] |
/external/libvpx/build/make/ |
obj_int_extract.c | 222 #include "elf.h" 230 if(!elf->le_data) {log_msg("Big Endian data not supported yet!\n");goto bail;}\ 240 uint8_t *buf; /* Buffer containing ELF data */ 246 int parse_elf32_header(elf_obj_t *elf) 250 COPY_STRUCT(&elf->hdr, elf->buf, 0, elf->sz); 251 res = elf->hdr.e_ident[EI_MAG0] == ELFMAG0; 252 res &= elf->hdr.e_ident[EI_MAG1] == ELFMAG1; 253 res &= elf->hdr.e_ident[EI_MAG2] == ELFMAG2 333 elf_obj_t elf; local [all...] |
/external/elfutils/src/ |
xelf.h | 1 /* Macros to enable writing native and generic ELF access code. 40 # define xelf_getehdr(elf, name) name = elf32_getehdr (elf) 41 # define xelf_getehdr_copy(elf, name, copy) \ 42 (copy) = *(name = elf32_getehdr (elf)) 43 # define xelf_newehdr(elf, klass) elf32_newehdr (elf) 44 # define xelf_update_ehdr(elf, ehdr) \ 45 /* nothing */ ((void) (elf), (void) (ehdr), 1) 47 # define xelf_getclass(elf) ELFCLASS3 [all...] |
size.c | 1 /* Print size information from ELF file. 91 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname); 93 /* Handle ELF file. */ 94 static void handle_elf (Elf *elf, const char *fullname, const char *fname); 144 "class" of ELF binaries processed. */ 302 Elf *elf; local 312 /* Now get the ELF descriptor. * [all...] |
/external/elfutils/tests/ |
sectiondump.c | 27 static int handle_section (Elf *elf, Elf_Scn *scn); 29 static void print_symtab (Elf *elf, Elf_Data *data); 35 Elf *elf; local 51 /* Create the ELF descriptor. */ 52 elf = elf_begin (fd, ELF_C_READ, NULL); 53 if (elf == NULL) 54 error (EXIT_FAILURE, 0, "cannot create ELF descriptor: %s" [all...] |
asm-tst7.c | 31 Elf *elf; local 67 elf = elf_begin (fd, ELF_C_READ, NULL); 68 if (elf == NULL) 70 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 74 if (elf_kind (elf) != ELF_K_ELF) 76 puts ("not a valid ELF file"); 87 scn = elf_getscn (elf, cnt); 108 / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT)); 156 elf_end (elf); [all...] |
update1.c | 32 Elf *elf; local 45 elf = elf_begin (fd, ELF_C_WRITE, NULL); 46 if (elf == NULL) 48 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 52 /* Create an ELF header. */ 53 ehdr = elf32_newehdr (elf); 56 printf ("cannot create ELF header: %s\n", elf_errmsg (-1)); 60 /* Print the ELF header values. */ 84 if (elf_update (elf, ELF_C_WRITE) < 0 [all...] |
update3.c | 34 Elf *elf; local 55 elf = elf_begin (fd, ELF_C_WRITE, NULL); 56 if (elf == NULL) 58 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 62 /* Create an ELF header. */ 63 ehdr = elf32_newehdr (elf); 66 printf ("cannot create ELF header: %s\n", elf_errmsg (-1)); 70 /* Print the ELF header values. */ 92 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY) [all...] |
arextract.c | 31 Elf *elf; local 32 Elf *subelf; 48 /* Set the ELF version. */ 51 /* Create an ELF descriptor. */ 53 elf = elf_begin (fd, cmd, NULL); 54 if (elf == NULL) 56 printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 61 if (elf_kind (elf) != ELF_K_AR) 68 while ((subelf = elf_begin (fd, cmd, elf)) != NULL [all...] |
newfile.c | 51 Elf *elf; local 66 elf = elf_begin (fd, ELF_C_WRITE, NULL); 67 if (elf == NULL) 74 if (elf32_newehdr (elf) == NULL) 81 Elf32_Ehdr *ehdr = elf32_getehdr (elf); 126 if (elf32_newphdr (elf, 10) == NULL) 136 ehdr = elf32_getehdr (elf); 162 (void) elf_end (elf);
|
/build/tools/soslim/ |
main.c | 5 3. fix the determination of the host and ELF-file endianness 14 #include <elf.h> 36 static void print_dynamic_symbols(Elf *elf, const char *symtab_name); 41 Elf *elf = NULL, *newelf = NULL; local 67 FAILIF(1, "You must specify an input ELF file!\n"); 75 /* Check to see whether the ELF library is current. */ 90 elf = elf_begin(elf_fd, ELF_C_READ, NULL); 91 FAILIF_LIBELF(elf == NULL, elf_begin) 122 Elf *elf = NULL; local [all...] |
/external/elfutils/libdw/ |
dwarf_begin_elf.c | 1 /* Create descriptor from ELF descriptor for processing file. 76 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx, 80 /* The section name must be valid. Otherwise is the ELF file 130 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Dwarf_Cmd cmd) 134 while ((scn = elf_nextscn (elf, scn)) != NULL) 142 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Dwarf_Cmd cmd, 161 Elf_Scn *scn = elf_getscn (elf, scnidx[cnt]); 179 dwarf_begin_elf (elf, cmd, scngrp [all...] |
/external/elfutils/libebl/ |
mips_init.c | 23 mips_init (elf, machine, eh, ehlen) 24 Elf *elf;
|
libebl_alpha.h | 21 extern int alpha_init (Elf *elf, GElf_Half machine, Ebl *eh, size_t ehlen);
|
/external/sonivox/arm-fm-22k/host_src/ |
arm-fm-22k.mak | 10 CC = C:\Program Files\GNUARM\bin\arm-elf-gcc.exe
11 AS = C:\Program Files\GNUARM\bin\arm-elf-as.exe
12 LD = C:\Program Files\GNUARM\bin\arm-elf-gcc.exe
13 AR = C:\Program Files\GNUARM\bin\arm-elf-ar.exe
|
/external/sonivox/arm-hybrid-22k/host_src/ |
arm-hybrid-22k.mak | 10 CC = C:\Program Files\GNUARM\bin\arm-elf-gcc.exe
11 AS = C:\Program Files\GNUARM\bin\arm-elf-as.exe
12 LD = C:\Program Files\GNUARM\bin\arm-elf-gcc.exe
13 AR = C:\Program Files\GNUARM\bin\arm-elf-ar.exe
|
/external/sonivox/arm-wt-22k/host_src/ |
arm-wt-22k.mak | 10 CC = C:\Program Files\GNUARM\bin\arm-elf-gcc.exe
11 AS = C:\Program Files\GNUARM\bin\arm-elf-as.exe
12 LD = C:\Program Files\GNUARM\bin\arm-elf-gcc.exe
13 AR = C:\Program Files\GNUARM\bin\arm-elf-ar.exe
|
/build/tools/lsd/ |
common.h | 5 #include <elf.h>
|
/external/elfcopy/ |
hash.h | 16 int hash_lookup(Elf *elf,
|
/external/elfutils/libasm/ |
asm_abort.c | 35 /* First free the ELF file. We don't care about the result. */ 36 (void) elf_end (ctx->out.elf);
|