HomeSort by relevance Sort by last modified time
    Searched refs:Elf (Results 126 - 150 of 252) sorted by null

1 2 3 4 56 7 8 91011

  /external/elfutils/libelf/
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...]
elf32_newehdr.c 1 /* Create new ELF header.
45 elfw2(LIBELFBITS,newehdr) (Elf *elf)
49 if (elf == NULL)
52 if (unlikely (elf->kind != ELF_K_ELF))
58 rwlock_wrlock (elf->lock);
60 if (elf->class == 0)
61 elf->class = ELFW(ELFCLASS,LIBELFBITS);
62 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
69 /* Don't create an ELF header if one already exists. *
    [all...]
elf32_offscn.c 46 elfw2(LIBELFBITS,offscn) (Elf *elf, ElfW2(LIBELFBITS,Off) offset)
48 if (elf == NULL)
51 if (unlikely (elf->kind != ELF_K_ELF))
57 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns;
66 rwlock_rdlock (elf->lock);
95 rwlock_unlock (elf->lock);
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_ehdr.c 1 /* Update ELF header.
41 gelf_update_ehdr (Elf *elf, GElf_Ehdr *src)
45 if (elf == NULL)
48 if (unlikely (elf->kind != ELF_K_ELF))
54 rwlock_wrlock (elf->lock);
56 if (elf->class == ELFCLASS32)
58 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr;
97 Elf64_Ehdr *ehdr = elf->state.elf64.ehdr;
109 /* Mark the ELF header as modified. *
    [all...]
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);
elf_update.c 44 write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
46 int class = elf->class;
50 if (unlikely (fstat (elf->fildes, &st) != 0))
61 if (elf->parent == NULL
62 && (elf->maximum_size == ~((size_t) 0)
63 || (size_t) size > elf->maximum_size)
64 && unlikely (ftruncate (elf->fildes, size) != 0))
71 if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP
    [all...]
  /system/core/libunwindstack/tools/
unwind.cpp 17 #include <elf.h>
31 #include <unwindstack/Elf.h>
106 unwindstack::Elf* elf = map_info->GetElf(pid, true); local
108 uint64_t rel_pc = elf->GetRelPc(regs->pc(), map_info);
112 adjusted_rel_pc = regs->GetAdjustedPc(rel_pc, elf);
130 if (elf->GetFunctionName(adjusted_rel_pc, &name, &func_offset)) {
139 if (!elf->Step(rel_pc + map_info->elf_offset, regs, &remote_memory)) {
  /toolchain/binutils/binutils-2.25/ld/testsuite/ld-powerpc/
vle-multiseg-6.d 9 Elf file type is EXEC.*
  /toolchain/binutils/binutils-2.25/ld/testsuite/ld-sh/
fdpic-stack-set.d 7 Elf file type is EXEC \(Executable file\)
fdpic-stack-size.d 7 Elf file type is EXEC \(Executable file\)
  /toolchain/binutils/binutils-2.25/ld/testsuite/ld-x86-64/
pr14207.d 7 Elf file type is DYN \(Shared object file\)
  /external/elfutils/src/
size.c 1 /* Print size information from ELF file.
99 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname);
101 /* Handle ELF file. */
102 static void handle_elf (Elf *elf, const char *fullname, const char *fname);
152 "class" of ELF binaries processed. */
293 /* Now get the ELF descriptor. */
294 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL) local
    [all...]
  /external/elfutils/backends/
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);
sparc_init.c 48 sparc_init (Elf *elf __attribute__ ((unused)),
  /external/elfutils/libdwelf/
dwelf_elf_gnu_debuglink.c 36 dwelf_elf_gnu_debuglink (Elf *elf, GElf_Word *crc)
39 if (elf_getshdrstrndx (elf, &shstrndx) < 0)
43 while ((scn = elf_nextscn (elf, scn)) != NULL)
50 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name);
88 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
92 Elf_Data *d = gelf_xlatetom (elf, &crcdata, &conv, ehdr->e_ident[EI_DATA]);
  /external/elfutils/tests/
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);
debuglink.c 47 Elf *elf = elf_begin (fd, ELF_C_READ, NULL); local
48 if (elf == NULL)
53 const char *debug = dwelf_elf_gnu_debuglink (elf, &crc);
59 elf_end (elf);
dwelfgnucompressed.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)
77 const char *sname = elf_strptr (elf, shdrstrndx, shdr.sh_name);
99 elf_end (elf);
scnnames.c 30 Elf *elf; local
51 elf = elf_begin (fd, ELF_C_READ, NULL);
52 if (elf == NULL)
54 printf ("cannot open ELF file: %s\n", elf_errmsg (-1));
58 if (elf_kind (elf) != ELF_K_ELF)
60 printf ("\"%s\" is not an ELF file\n", argv[1]);
64 if (gelf_getehdr (elf, &ehdr) == NULL)
66 printf ("cannot get the ELF header: %s\n", elf_errmsg (-1));
73 while ((scn = elf_nextscn (elf, scn)) != NULL
    [all...]
strptr.c 30 #include ELFUTILS_HEADER(elf)
38 printf ("No ELF file given as argument");
47 /* Read the ELF from disk now. */
55 Elf *elf = elf_begin (fd, ELF_C_READ, NULL); local
56 if (elf == NULL)
58 printf ("cannot create ELF descriptor read-only: %s\n", elf_errmsg (-1));
63 if (elf_getshdrstrndx (elf, &ndx) != 0)
71 printf ("ELF file `%s' doesn't have a section header table index", fname);
78 const char *str = elf_strptr (elf, ndx, off)
    [all...]
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);
elfshphehdr.c 20 #include ELFUTILS_HEADER(elf)
58 test (Elf *elf, int class, bool layout)
60 fprintf (stderr, "testing ELF class: %d, layout: %d\n", class, layout);
62 check_elf ("gelf_newehdr", gelf_newehdr (elf, class) != 0);
63 check_elf ("gelf_getclass", gelf_getclass (elf) == class);
65 check_elf ("elf_flagelf", elf_flagelf (elf, layout ? ELF_C_SET : ELF_C_CLR,
69 check_elf ("gelf_getehdr", gelf_getehdr (elf, &ehdr) != NULL);
76 check_elf ("elf_getshdrnum", elf_getshdrnum (elf, &shnum) == 0);
80 check_elf ("elf_getphdrnum", elf_getphdrnum (elf, &phnum) == 0)
158 Elf *elf; local
    [all...]
  /system/core/libunwindstack/tests/
RegsTest.cpp 21 #include <unwindstack/Elf.h>
30 class ElfFake : public Elf {
32 ElfFake(Memory* memory) : Elf(memory) { valid_ = true; }
61 uint64_t GetAdjustedPc(uint64_t, Elf*) override { return 0; }
63 bool StepIfSignalHandler(uint64_t, Elf*, Memory*) override { return false; }
225 Elf invalid_elf(new MemoryFake);

Completed in 2567 milliseconds

1 2 3 4 56 7 8 91011