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

1 2 3 4 5 6 7 891011

  /external/elfutils/tests/
elfputzdata.c 41 || (strcmp (argv[1], "elf") != 0
44 printf ("Usage: (elf|gnu) files...\n");
60 Elf *elf = elf_begin (fd, ELF_C_READ, NULL); local
61 if (elf == NULL)
71 elf_getshdrstrndx (elf, &strndx);
74 while ((scn = elf_nextscn (elf, scn)) != NULL)
79 const char *name = elf_strptr (elf, strndx, shdr->sh_name);
232 elf_end (elf);
update2.c 37 Elf *elf; local
51 elf = elf_begin (fd, ELF_C_WRITE, NULL);
52 if (elf == NULL)
54 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
58 /* Create an ELF header. */
59 ehdr = elf32_newehdr (elf);
62 printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
66 /* Print the ELF header values. */
88 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY)
    [all...]
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...]
alldts.c 1 /* Create an ELF file with all the DT_* flags set.
24 #include <elf.h>
81 /* Create an ELF descriptor. */
82 Elf *elf = elf_begin (fd, ELF_C_WRITE, NULL); local
83 if (elf == NULL)
85 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
89 /* Create an ELF header. */
90 Elf32_Ehdr *ehdr = elf32_newehdr (elf);
93 printf ("cannot create ELF header: %s\n", elf_errmsg (-1))
    [all...]
asm-tst3.c 61 Elf *elf; local
148 elf = elf_begin (fd, ELF_C_READ, NULL);
149 if (elf == NULL)
151 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
155 if (elf_kind (elf) != ELF_K_ELF)
157 puts ("not a valid ELF file");
162 ehdr = gelf_getehdr (elf, &ehdr_mem);
165 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
176 scn = elf_getscn (elf, cnt)
    [all...]
asm-tst9.c 89 Elf *elf; local
175 elf = elf_begin (fd, ELF_C_READ, NULL);
176 if (elf == NULL)
178 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
182 if (elf_kind (elf) != ELF_K_ELF)
184 puts ("not a valid ELF file");
189 ehdr = gelf_getehdr (elf, &ehdr_mem);
192 printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
199 puts ("ELF header does not match")
    [all...]
  /system/core/libunwindstack/
Maps.cpp 32 #include <unwindstack/Elf.h>
119 delete map.elf;
120 map.elf = nullptr;
  /external/elfutils/libdwfl/
elf-from-memory.c 1 /* Reconstruct an ELF file by reading the segments out of remote memory.
41 /* Reconstruct an ELF file by reading the segments out of remote memory
42 based on the ELF file header at EHDR_VMA and the ELF program headers it
56 Elf *
383 Elf *elf = elf_memory ((char *) buffer, contents_size); local
384 if (elf == NULL)
390 elf->flags |= ELF_F_MALLOCED;
393 return elf;
    [all...]
linux-proc-maps.c 52 /* Return ELFCLASS64 or ELFCLASS32 for the main ELF executable. Return
337 extern Elf *elf_from_remote_memory (GElf_Addr ehdr_vma,
354 char **file_name, Elf **elfp)
391 /* Special case for in-memory ELF image. */
argp-std.c 285 Elf *core;
290 _("cannot read ELF core file: %s"),
306 /* Store core Elf and fd in Dwfl to expose with dwfl_end. */
  /system/core/libunwindstack/tests/
UnwindTest.cpp 35 #include <unwindstack/Elf.h>
99 Elf* elf = map_info->GetElf(pid, true); local
100 uint64_t rel_pc = elf->GetRelPc(regs->pc(), map_info);
103 adjusted_rel_pc = regs->GetAdjustedPc(rel_pc, elf);
116 if (elf->GetFunctionName(adjusted_rel_pc, &name, &func_offset)) {
125 ASSERT_TRUE(elf->Step(rel_pc + map_info->elf_offset, regs, memory))
  /bionic/tools/relocation_packer/src/
elf_file.cc 7 // We need to remove a piece from the ELF shared library. However, we also
71 // Verbose ELF header logging.
83 // Verbose ELF program header logging.
109 // Verbose ELF section header logging.
121 // Verbose ELF section data logging.
130 // Load the complete ELF file into a memory image in libelf, and identify
132 // .android.rela.dyn sections. No-op if the ELF file has already been loaded.
133 template <typename ELF>
134 bool ElfFile<ELF>::Load() {
138 Elf* elf = elf_begin(fd_, ELF_C_RDWR, NULL)
    [all...]
  /external/elfutils/src/
elfcmp.c 1 /* Compare relevant content of two ELF files.
37 #include "../libelf/elf-knowledge.h"
42 static Elf *open_file (const char *fname, int *fdp, Ebl **eblp);
78 Compare relevant parts of two ELF files for equality.");
164 Elf *elf1 = open_file (fname1, &fd1, &ebl1);
169 Elf *elf2 = open_file (fname2, &fd2, &ebl2);
174 error (2, 0, gettext ("cannot get ELF header of '%s': %s"),
179 error (2, 0, gettext ("cannot get ELF header of '%s': %s"),
191 /* Compare the ELF headers. */
205 error (0, 0, gettext ("%s %s diff: ELF header"), fname1, fname2)
733 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local
    [all...]
stack.c 74 static Elf *core = NULL;
117 Elf *elf = dwfl_module_getelf (mod, &bias); local
118 if (elf)
121 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
137 /* Forces resolving of main elf and debug files. */
139 Elf *elf = dwfl_module_getelf (mod, &bias); local
165 if (elf != NULL)
676 N_("Show module memory map with build-id, elf and debug files detected"), 0 }
    [all...]
strings.c 53 static int read_elf (Elf *elf, int fd, const char *fname, off_t fdlen);
137 /* Mapped parts of the ELF file. */
197 Elf *elf = NULL; local
201 || (elf = elf_begin (fd, ELF_C_READ, NULL)) == NULL
202 || elf_kind (elf) != ELF_K_ELF)
205 result |= read_elf (elf, fd, fname, fdlen);
207 /* This call will succeed even if ELF is NULL. */
208 elf_end (elf);
    [all...]
arlib.c 202 /* Add symbols from ELF with value OFFSET to the symbol table SYMTAB. */
204 arlib_add_symbols (Elf *elf, const char *arfname, const char *membername,
212 /* We only add symbol tables for ELF files. It makes not much sense
216 if (elf_kind (elf) != ELF_K_ELF)
220 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
222 error (EXIT_FAILURE, 0, gettext ("cannot read ELF header of %s(%s): %s"),
236 while ((scn = elf_nextscn (elf, scn)) != NULL)
264 const char *symname = elf_strptr (elf, shdr->sh_link, sym->st_name);
addr2line.c 123 /* True if ELF symbol or section info should be shown. */
462 Elf *elf = dwfl_module_getelf (mod, &ebias); local
464 if (gelf_getehdr (elf, &ehdr) != NULL)
465 printf (" (%s)", elf_strptr (elf, ehdr.e_shstrndx,
600 Elf *elf = dwfl_module_getelf (mod, &bias); local
601 if (elf != NULL)
604 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
ld.h 125 /* This is the ELF library handle for this file. */
126 Elf *elf; member in struct:usedfiles
128 /* The ELF header. */
138 separate field and not the e_shstrndx field in the ELF header
251 return (elf_kind (file->elf) == ELF_K_ELF
258 return (elf_kind (file->elf) == ELF_K_ELF
265 return elf_kind (file->elf) == ELF_K_AR;
336 create as much of the ELF structure as possible. */
735 /* ELF backend library handle. *
    [all...]
strip.c 43 #include <elf-knowledge.h>
87 N_("Relax a few rules to handle slightly broken ELF files"), 0 },
110 /* Handle one ELF file. */
111 static int handle_elf (int fd, Elf *elf, const char *prefix,
115 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
153 /* If true relax some ELF rules for input files. */
356 /* Now get the ELF descriptor. */
357 Elf *elf = elf_begin (fd, output_fname == NULL ? ELF_C_RDWR : ELF_C_READ local
    [all...]
  /external/elfutils/libdw/
libdw.h 236 /* Opaque type representing a CFI section found in a DWARF or ELF file. */
259 /* Create a handle for a new debug session for an ELF file. */
260 extern Dwarf *dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp);
262 /* Retrieve ELF descriptor used for DWARF access. */
263 extern Elf *dwarf_getelf (Dwarf *dwarf);
308 The E_IDENT from the originating ELF file indicates the address
337 /* Use the CFI in the ELF file's exception-handling data.
339 The pointer returned can be used until elf_end is called on ELF,
342 extern Dwarf_CFI *dwarf_getcfi_elf (Elf *elf)
    [all...]
  /external/elfutils/libelf/
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...]
elf32_newphdr.c 1 /* Create new ELF program header table.
46 elfw2(LIBELFBITS,newphdr) (Elf *elf, size_t count)
50 if (elf == NULL)
53 if (unlikely (elf->kind != ELF_K_ELF))
65 rwlock_wrlock (elf->lock);
67 if (elf->class == 0)
68 elf->class = ELFW(ELFCLASS,LIBELFBITS);
69 else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
76 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)
    [all...]
  /external/elfutils/libebl/
libebl.h 51 #include "elf-knowledge.h"
62 /* Get backend handle for object associated with ELF handle. */
63 extern Ebl *ebl_openbackend (Elf *elf);
64 /* Similar but without underlying ELF file. */
75 /* Get ELF machine. */
78 /* Get ELF class. */
81 /* Get ELF data encoding. */
85 /* Function to call the callback functions including default ELF
298 /* ELF string table handling. *
    [all...]
  /external/linux-kselftest/tools/testing/selftests/vDSO/
parse_vdso.c 10 * The vDSO is a regular ELF DSO that the kernel maps into user space when
22 #include <elf.h>
57 #define ELF_BITS_XFORM2(bits, x) Elf##bits##_##x
59 #define ELF(x) ELF_BITS_XFORM(ELF_BITS, x)
70 ELF(Sym) *symtab;
72 ELF(Word) *bucket, *chain;
73 ELF(Word) nbucket, nchain;
76 ELF(Versym) *versym;
77 ELF(Verdef) *verdef;
80 /* Straight from the ELF specification. *
    [all...]
  /toolchain/binutils/binutils-2.25/bfd/
elfcode.h 0 /* ELF executable support for BFD.
38 bfd structure which contains the number of sections. However, ELF
44 In ELF-speak, the "linking view" of the file uses the section header
50 Note that the section header table is optional in ELF executables,
57 and moved into elf.c.
59 (3) ELF section symbols are handled rather sloppily now. This should
60 be cleaned up, and ELF section symbols reconciled with BFD section
63 (4) We need a published spec for 64-bit ELF. We've got some stuff here
73 #include "elf-bfd.h"
77 #define Elf_External_Ehdr NAME(Elf,External_Ehdr
    [all...]

Completed in 4358 milliseconds

1 2 3 4 5 6 7 891011