/external/elfutils/libelf/ |
elf_begin.c | 72 static inline Elf * 74 Elf_Cmd cmd, Elf *parent) 76 Elf *elf; local 79 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, 81 if (elf != NULL) 85 elf->state.ar.offset = offset + SARMAG; 87 elf->state.ar.elf_ar_hdr.ar_rawname = elf->state.ar.raw_name; 90 return elf; [all...] |
elf32_getshdr.c | 75 Elf *elf = scn->elf; local 76 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 84 if (__elf_getshnum_rdlock (elf, &shnum) != 0) 89 of entries from the ELF header. */ 90 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = 92 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL [all...] |
elf32_offscn.c | 67 elfw2(LIBELFBITS,offscn) (elf, offset) 68 Elf *elf; 71 if (elf == NULL) 74 if (unlikely (elf->kind != ELF_K_ELF)) 80 Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns; 89 rwlock_rdlock (elf->lock); 117 rwlock_unlock (elf->lock);
|
gelf_update_ehdr.c | 1 /* Update ELF header. 62 gelf_update_ehdr (Elf *elf, GElf_Ehdr *src) 66 if (elf == NULL) 69 if (unlikely (elf->kind != ELF_K_ELF)) 75 rwlock_wrlock (elf->lock); 77 if (elf->class == ELFCLASS32) 79 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; 118 Elf64_Ehdr *ehdr = elf->state.elf64.ehdr; 133 rwlock_unlock (elf->lock) [all...] |
gelf_getmove.c | 69 Elf *elf; local 92 elf = ((Elf_Data_Scn *) data)->s->elf; 93 rwlock_rdlock (elf->lock); 97 rwlock_unlock (elf->lock);
|
elf32_updatenull.c | 63 #include "elf-knowledge.h" 72 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, 79 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; 84 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags); 91 elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY; 104 /* Unconditionally overwrite the ELF version. * [all...] |
elf_strptr.c | 62 elf_strptr (elf, idx, offset) 63 Elf *elf; 67 if (elf == NULL) 70 if (elf->kind != ELF_K_ELF) 76 rwlock_rdlock (elf->lock); 82 Elf_ScnList *runp = (elf->class == ELFCLASS32 83 || (offsetof (struct Elf, state.elf32.scns) 84 == offsetof (struct Elf, state.elf64.scns)) 85 ? &elf->state.elf32.scns : &elf->state.elf64.scns) [all...] |
elf32_updatefile.c | 127 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) 132 /* We need the ELF header several times. */ 133 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 135 /* Write out the ELF header. */ 136 if ((elf->state.ELFW(elf,LIBELFBITS).ehdr_flags | elf->flags) & ELF_F_DIRTY) 145 /* Today there is only one version of the ELF header. * [all...] |
elf32_checksum.c | 1 /* Compute simple checksum from permanent parts of the ELF file. 63 #include "elf-knowledge.h" 80 elfw2(LIBELFBITS,checksum) (elf) 81 Elf *elf; 89 if (elf == NULL) 93 if (INTUSE(elf_getshstrndx) (elf, &shstrndx) < 0) 95 /* This can only happen if the ELF handle is not for real. */ 102 ident = elf->state.ELFW(elf,LIBELFBITS).ehdr->e_ident [all...] |
/external/elfutils/backends/ |
sh_symbol.c | 31 #include <elf.h> 40 sh_gotpc_reloc_check (Elf *elf __attribute__ ((unused)), int type)
|
arm_init.c | 40 arm_init (elf, machine, eh, ehlen) 41 Elf *elf __attribute__ ((unused));
|
sh_init.c | 40 sh_init (elf, machine, eh, ehlen) 41 Elf *elf __attribute__ ((unused));
|
/external/elfutils/tests/ |
scnnames.c | 38 Elf *elf; local 59 elf = elf_begin (fd, ELF_C_READ, NULL); 60 if (elf == NULL) 62 printf ("cannot open ELF file: %s\n", elf_errmsg (-1)); 66 if (elf_kind (elf) != ELF_K_ELF) 68 printf ("\"%s\" is not an ELF file\n", argv[1]); 72 if (gelf_getehdr (elf, &ehdr) == NULL) 74 printf ("cannot get the ELF header: %s\n", elf_errmsg (-1)); 81 while ((scn = elf_nextscn (elf, scn)) != NULL [all...] |
update2.c | 44 Elf *elf; local 58 elf = elf_begin (fd, ELF_C_WRITE, NULL); 59 if (elf == NULL) 61 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 65 /* Create an ELF header. */ 66 ehdr = elf32_newehdr (elf); 69 printf ("cannot create ELF header: %s\n", elf_errmsg (-1)); 73 /* Print the ELF header values. */ 95 elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY) [all...] |
arsymtest.c | 40 Elf *elf; local 63 /* Set the ELF version. */ 66 /* Create an ELF descriptor. */ 67 elf = elf_begin (fd, ELF_C_READ, NULL); 68 if (elf == NULL) 70 printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1)); 75 if (elf_kind (elf) != ELF_K_AR) 82 arsym = elf_getarsym (elf, &narsym); 95 Elf *subelf [all...] |
/external/elfutils/libdw/ |
dwarf_begin.c | 67 Elf *elf; local 90 would break libdwarf since we are using the ELF data structures 94 /* Get an ELF descriptor. */ 95 elf = elf_begin (fd, elfcmd, NULL); 96 if (elf == NULL) 116 /* Do the real work now that we have an ELF descriptor. */ 117 result = INTUSE(dwarf_begin_elf) (elf, cmd, NULL); 121 elf_end (elf);
|
dwarf_getelf.c | 1 /* Retrieve ELF descriptor used for DWARF access. 60 Elf * 68 return dwarf->elf;
|
/external/elfutils/libasm/ |
disasm_begin.c | 38 disasm_begin (Ebl *ebl, Elf *elf, DisasmGetSymCB_t symcb) 57 ctx->elf = elf;
|
asm_getelf.c | 1 /* Return ELF descriptor associated with the assembler context. 36 Elf * 40 return ctx != NULL ? ctx->out.elf : NULL;
|
/cts/tests/tests/os/src/android/os/cts/ |
AbiTest.java | 52 ReadElf elf = null; local 54 elf = ReadElf.read(f); 56 // If it's not actually an ELF file, we don't care. 58 if (elf != null) { 59 elf.close();
|
/external/elfutils/libdwfl/ |
dwfl_build_id_find_debuginfo.c | 71 /* We need to open an Elf handle on the file so we can check its 74 mod->debug.elf = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL); 75 if (likely (__libdwfl_find_build_id (mod, false, mod->debug.elf) == 2)) 81 elf_end (mod->debug.elf); 82 mod->debug.elf = NULL;
|
/external/elfutils/libebl/ |
eblgotpcreloccheck.c | 64 return ebl != NULL ? ebl->gotpc_reloc_check (ebl->elf, reloc) : false;
|
eblrelocvaliduse.c | 63 return ebl != NULL ? ebl->reloc_valid_use (ebl->elf, reloc) : false;
|
/external/llvm/test/Object/Inputs/ |
elfver.S | 3 # clang $ARGS -m32 elfver.S -lc -o elf-versioning-test.i386 4 # clang $ARGS -m64 elfver.S -lc -o elf-versioning-test.x86_64 7 # strip elf-versioning-test.i386 8 # strip elf-versioning-test.x86_64
|
/sdk/emulator/qtools/tests/gtrace/ |
Makefile | 7 all: test.elf test.bin test.dis 9 trace: test.elf test.bin 12 $(QTOOLS)/read_trace foo test.elf > t1 15 $(QTOOLS)/q2g -r $(P4ROOT)/device/out/linux-arm-release/symbols foo test.elf foo.gtrace
|