/external/elfutils/libelf/ |
gelf_getauxv.c | 45 Elf *elf; local 56 elf = data_scn->s->elf; 58 rwlock_rdlock (elf->lock); 63 if (elf->class == ELFCLASS32) 104 rwlock_unlock (elf->lock);
|
gelf_getdyn.c | 46 Elf *elf; local 57 elf = data_scn->s->elf; 59 rwlock_rdlock (elf->lock); 64 if (elf->class == ELFCLASS32) 105 rwlock_unlock (elf->lock);
|
gelf_update_shdr.c | 44 Elf *elf; local 49 elf = scn->elf; 50 rwlock_wrlock (elf->lock); 52 if (elf->class == ELFCLASS32) 108 rwlock_unlock (elf->lock);
|
elf32_updatenull.c | 42 #include "elf-knowledge.h" 51 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, 58 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; 63 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); 70 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; 83 /* Unconditionally overwrite the ELF version. * [all...] |
elf_getdata.c | 42 #include "elf-knowledge.h" 123 __libelf_data_type (Elf *elf, int sh_type) 125 /* Some broken ELF ABI for 64-bit machines use the wrong hash table 126 entry size. See elf-knowledge.h for more information. */ 127 if (sh_type == SHT_HASH && elf->class == ELFCLASS64) 130 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem); 226 Elf *elf = scn->elf; local 410 Elf *elf = scn->elf; local 447 Elf *elf; local [all...] |
elf_newdata.c | 55 if (scn->elf->class == ELFCLASS32 56 || (offsetof (struct Elf, state.elf32.ehdr) 57 == offsetof (struct Elf, state.elf64.ehdr)) 58 ? scn->elf->state.elf32.ehdr == NULL 59 : scn->elf->state.elf64.ehdr == NULL) 65 rwlock_wrlock (scn->elf->lock); 67 /* data_read is set when data has been read from the ELF image or 69 been read from the ELF image, then rawdata_base will point to raw 131 rwlock_unlock (scn->elf->lock);
|
common.h | 49 /* Next try ELF files. */ 52 /* Could be an ELF file. */ 68 /* Allocate an Elf descriptor and fill in the generic information. */ 69 static inline Elf * 72 Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra) 74 Elf *result = (Elf *) calloc (1, sizeof (Elf) + extra); 98 libelf_acquire_all (Elf *elf) [all...] |
/external/elfutils/tests/ |
arls.c | 57 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local 58 if (elf == NULL) 60 printf ("cannot get ELF handling for '%s': %s\n", 66 if (elf_kind (elf) != ELF_K_AR) 69 elf_end (elf); 75 Elf *subelf = NULL; 77 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) 85 elf_end (elf);
|
sectiondump.c | 31 static int handle_section (Elf *elf, Elf_Scn *scn); 33 static void print_symtab (Elf *elf, Elf_Data *data); 39 Elf *elf; local 55 /* Create the ELF descriptor. */ 56 elf = elf_begin (fd, ELF_C_READ, NULL); 57 if (elf == NULL) 58 error (EXIT_FAILURE, 0, "cannot create ELF descriptor: %s" [all...] |
elfgetchdr.c | 27 #include ELFUTILS_HEADER(elf) 47 Elf *elf = elf_begin (fd, ELF_C_READ, NULL); local 48 if (elf == NULL) 57 if (elf_getshdrstrndx (elf, &shdrstrndx) == -1) 66 while ((scn = elf_nextscn (elf, scn)) != NULL) 87 printf ("section %d: ELF Compressed ch_type: %" PRId32 93 const char *sname = elf_strptr (elf, shdrstrndx, shdr.sh_name); 119 elf_end (elf);
|
buildid.c | 23 #include ELFUTILS_HEADER(elf) 49 Elf *elf = elf_begin (fd, ELF_C_READ, NULL); local 50 if (elf == NULL) 58 ssize_t len = dwelf_elf_gnu_build_id (elf, &build_id); 76 elf_end (elf);
|
test-elf_cntl_gelf_getshdr.c | 41 fprintf (stderr, "Second is the ELF file to read.\n"); 78 Elf *elf = elf_begin (fd, do_mmap ? ELF_C_READ_MMAP : ELF_C_READ, NULL); local 79 if (elf == NULL) 88 if (elf_cntl (elf, ELF_C_FDREAD) < 0) 98 while ((scn = elf_nextscn (elf, scn)) != NULL) 105 elf_end (elf);
|
update3.c | 39 Elf *elf; local 60 elf = elf_begin (fd, ELF_C_WRITE, NULL); 61 if (elf == NULL) 63 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 67 /* Create an ELF header. */ 68 ehdr = elf32_newehdr (elf); 71 printf ("cannot create ELF header: %s\n", elf_errmsg (-1)); 75 /* Print the ELF header values. */ 97 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY) [all...] |
arextract.c | 35 Elf *elf; local 36 Elf *subelf; 52 /* Set the ELF version. */ 55 /* Create an ELF descriptor. */ 57 elf = elf_begin (fd, cmd, NULL); 58 if (elf == NULL) 60 printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 65 if (elf_kind (elf) != ELF_K_AR) 72 while ((subelf = elf_begin (fd, cmd, elf)) != NULL [all...] |
elfgetzdata.c | 55 Elf *elf = elf_begin (fd, mmap ? ELF_C_READ_MMAP : ELF_C_READ, NULL); local 56 if (elf == NULL) 66 elf_getshdrstrndx (elf, &strndx); 69 while ((scn = elf_nextscn (elf, scn)) != NULL) 74 const char *name = elf_strptr (elf, strndx, shdr->sh_name); 85 printf ("%zd: %s, ELF compressed, size: %zx\n", 108 elf_end (elf);
|
newfile.c | 55 Elf *elf; local 70 elf = elf_begin (fd, ELF_C_WRITE, NULL); 71 if (elf == NULL) 78 if (elf32_newehdr (elf) == NULL) 85 Elf32_Ehdr *ehdr = elf32_getehdr (elf); 130 if (elf32_newphdr (elf, 10) == NULL) 140 ehdr = elf32_getehdr (elf); 166 (void) elf_end (elf);
|
/external/google-breakpad/src/common/linux/ |
dump_symbols_unittest.cc | 35 #include <elf.h> 56 using google_breakpad::synth_elf::ELF; 67 void GetElfContents(ELF& elf) { 69 ASSERT_TRUE(elf.GetContents(&contents)); 94 ELF elf(EM_386, ELFCLASS32, kLittleEndian); 98 elf.AddSection(".text", text, SHT_PROGBITS); 106 int index = elf.AddSection(".dynstr", table, SHT_STRTAB); 107 elf.AddSection(".dynsym", syms [all...] |
/external/elfutils/backends/ |
ppc_symbol.c | 35 #include <elf.h> 84 find_dyn_got (Elf *elf, GElf_Addr *addr) 87 if (elf_getphdrnum (elf, &phnum) != 0) 93 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem); 97 Elf_Scn *scn = gelf_offscn (elf, phdr->p_offset); 125 ppc_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, 135 if (find_dyn_got (elf, &gotaddr)) 142 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name) [all...] |
aarch64_symbol.c | 33 #include <elf.h> 65 aarch64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, 71 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name); 76 while ((scn = elf_nextscn (elf, scn)) != NULL) 82 sname = elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name);
|
i386_symbol.c | 35 #include <elf.h> 45 i386_gotpc_reloc_check (Elf *elf __attribute__ ((unused)), int type)
|
sh_symbol.c | 34 #include <elf.h> 43 sh_gotpc_reloc_check (Elf *elf __attribute__ ((unused)), int type)
|
/external/elfutils/src/ |
xelf.h | 1 /* Macros to enable writing native and generic ELF access code. 44 # define xelf_getehdr(elf, name) name = elf32_getehdr (elf) 45 # define xelf_getehdr_copy(elf, name, copy) \ 46 (copy) = *(name = elf32_getehdr (elf)) 47 # define xelf_newehdr(elf, klass) elf32_newehdr (elf) 48 # define xelf_update_ehdr(elf, ehdr) \ 49 /* nothing */ ((void) (elf), (void) (ehdr), 1) 51 # define xelf_getclass(elf) ELFCLASS3 [all...] |
/external/elfutils/libdwfl/ |
dwfl_module_getsym.c | 34 GElf_Word *shndxp, Elf **elfp, Dwarf_Addr *biasp, 54 Elf *elf; local 63 elf = mod->symfile->elf; 72 elf = mod->aux_sym.elf; 81 elf = mod->symfile->elf; 90 elf = mod->aux_sym.elf [all...] |
offline.c | 53 if (mod->debug.elf == NULL) 61 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx); 64 while ((scn = elf_nextscn (mod->debug.elf, scn)) != ourscn) 76 while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL) 97 const char *file_name, int fd, Elf *elf); 99 const char *file_name, int fd, Elf *elf, 103 /* Report one module for an ELF file, or many for an archive. 104 Always consumes ELF and FD. * 273 Elf *elf; local [all...] |
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/i386/ilp32/elf/ |
symver.d | 1 #source: ../../../elf/symver.s 3 #name: ELF symbol versioning 6 # some toolchains, eg the mips-elf port will add .reginfo and .ptrd 7 # and the arm-elf toolchain will add $d.
|