HomeSort by relevance Sort by last modified time
    Searched refs:elf (Results 26 - 50 of 1291) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/elfutils/tests/
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...]
run-dwfl-report-elf-align.sh 20 testfiles testfile-dwfl-report-elf-align-shlib.so
23 # 7f3560c92000-7f3560c93000 r-xp 00000000 fd:02 25037063 testfile-dwfl-report-elf-align-shlib.so
24 # 7f3560c93000-7f3560e92000 ---p 00001000 fd:02 25037063 testfile-dwfl-report-elf-align-shlib.so
25 # 7f3560e92000-7f3560e93000 rw-p 00000000 fd:02 25037063 testfile-dwfl-report-elf-align-shlib.so
26 # testfile-dwfl-report-elf-align-shlib.so:
35 # #1 0x00007f3560c92585 in shlib () from ./testfile-dwfl-report-elf-align-shlib.so
37 # 0x7f3560c92000 is VMA address of first byte of testfile-dwfl-report-elf-align-shlib.so.
41 testrun ${abs_builddir}/dwfl-report-elf-align ./testfile-dwfl-report-elf-align-shlib.so \
newdata.c 30 #include ELFUTILS_HEADER(elf)
38 add_section_data (Elf *elf, char *buf, size_t len)
42 Elf_Scn *scn = elf_getscn (elf, 1);
63 if (elf_update (elf, ELF_C_NULL) < 0)
71 static Elf *
74 Elf *elf = elf_begin (fd, use_mmap ? ELF_C_WRITE_MMAP : ELF_C_WRITE, NULL); local
75 if (elf == NULL)
77 printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1))
159 Elf *elf = elf_begin (fd, use_mmap ? ELF_C_RDWR_MMAP : ELF_C_RDWR, NULL); local
253 Elf *elf = create_elf (fd, class, use_mmap); local
    [all...]
showptable.c 30 Elf *elf; local
50 elf = elf_begin (fd, ELF_C_READ, NULL);
51 if (elf == NULL)
53 printf ("cannot open ELF file: %s\n", elf_errmsg (-1));
57 if (elf_kind (elf) != ELF_K_ELF)
59 printf ("\"%s\" is not an ELF file\n", argv[1]);
63 if (gelf_getehdr (elf, &ehdr) == NULL)
65 printf ("cannot get the ELF header: %s\n", elf_errmsg (-1));
70 gelf_getclass (elf) == ELFCLASS32 ? 9 : 17, "offset"
    [all...]
  /external/elfutils/libelf/
elf_getphdrnum.c 1 /* Return number of program headers in the ELF file.
42 __elf_getphdrnum_rdlock (Elf *elf, size_t *dst)
44 if (unlikely (elf->state.elf64.ehdr == NULL))
46 /* Maybe no ELF header was created yet. */
51 *dst = (elf->class == ELFCLASS32
52 ? elf->state.elf32.ehdr->e_phnum
53 : elf->state.elf64.ehdr->e_phnum);
57 const Elf_ScnList *const scns = (elf->class == ELFCLASS32
58 ? &elf->state.elf32.scn
    [all...]
elf_getident.c 40 elf_getident (Elf *elf, size_t *ptr)
42 /* In case this is no ELF file, the handle is invalid and we return
44 if (elf == NULL || elf->kind != ELF_K_ELF)
51 /* We already read the ELF header. Return a pointer to it and store
56 return (char *) (elf->class == ELFCLASS32
57 || (offsetof (struct Elf, state.elf32.ehdr)
58 == offsetof (struct Elf, state.elf64.ehdr))
59 ? elf->state.elf32.ehdr->e_iden
    [all...]
elf32_getphdr.c 1 /* Get ELF program header table.
49 __elfw2(LIBELFBITS,getphdr_wrlock) (Elf *elf)
56 result = elf->state.ELFW(elf,LIBELFBITS).phdr;
60 if (elf->class == 0)
61 elf->class = ELFW(ELFCLASS,LIBELFBITS);
62 else if (elf->class != ELFW(ELFCLASS,LIBELFBITS))
72 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr
    [all...]
elf_end.c 1 /* Free resources associated with Elf descriptor.
43 elf_end (Elf *elf)
45 Elf *parent;
47 if (elf == NULL)
52 rwlock_wrlock (elf->lock);
54 if (elf->ref_count != 0 && --elf->ref_count != 0)
57 int result = elf->ref_count;
58 rwlock_unlock (elf->lock)
    [all...]
elf_getscn.c 42 elf_getscn (Elf *elf, size_t idx)
44 if (elf == NULL)
47 if (unlikely (elf->kind != ELF_K_ELF))
53 rwlock_rdlock (elf->lock);
58 Elf_ScnList *runp = (elf->class == ELFCLASS32
59 || (offsetof (struct Elf, state.elf32.scns)
60 == offsetof (struct Elf, state.elf64.scns))
61 ? &elf->state.elf32.scns : &elf->state.elf64.scns)
    [all...]
gelf_getphdr.c 42 gelf_getphdr (Elf *elf, int ndx, GElf_Phdr *dst)
46 if (elf == NULL)
49 if (unlikely (elf->kind != ELF_K_ELF))
61 rwlock_rdlock (elf->lock);
63 if (elf->class == ELFCLASS32)
66 Elf32_Phdr *phdr = elf->state.elf32.phdr;
70 rwlock_unlock (elf->lock);
71 phdr = INTUSE(elf32_getphdr) (elf);
75 rwlock_rdlock (elf->lock)
    [all...]
gelf_xlatetof.c 1 /* Convert from memory to file representation. Generic ELF version.
41 gelf_xlatetof (Elf *elf, Elf_Data *dest, const Elf_Data * src,
44 if (elf == NULL)
47 return (elf->class == ELFCLASS32
gelf_xlatetom.c 1 /* Convert from file to memory representation. Generic ELF version.
41 gelf_xlatetom (Elf *elf, Elf_Data *dest, const Elf_Data * src,
44 if (elf == NULL)
47 return (elf->class == ELFCLASS32
elf_getarsym.c 50 read_number_entries (uint64_t *nump, Elf *elf, size_t *offp, bool index64_p)
59 if (elf->map_address != NULL)
62 memcpy (&u, elf->map_address + *offp, sizeof u);
63 else if ((size_t) pread_retry (elf->fildes, &u, w, *offp) != w)
77 elf_getarsym (Elf *elf, size_t *ptr)
79 if (elf->kind != ELF_K_AR)
89 *ptr = elf->state.ar.ar_sym_num;
91 if (elf->state.ar.ar_sym == (Elf_Arsym *) -1l
    [all...]
elf_flagelf.c 1 /* Manipulate ELF file flags.
41 elf_flagelf (Elf *elf, Elf_Cmd cmd, unsigned int flags)
45 if (elf == NULL)
48 if (unlikely (elf->kind != ELF_K_ELF))
55 result = (elf->flags
58 result = (elf->flags
gelf_update_phdr.c 41 gelf_update_phdr (Elf *elf, int ndx, GElf_Phdr *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_Phdr *phdr = elf->state.elf32.phdr;
76 phdr = __elf32_getphdr_wrlock (elf);
84 if (ndx >= elf->state.elf32.ehdr->e_phnum
85 && (elf->state.elf32.ehdr->e_phnum != PN_XNU
    [all...]
  /build/soong/cmd/symbol_inject/
elf_symboldata_test.go 17 import "debug/elf"
31 t: elf.ET_EXEC,
32 sections: []elf.SectionHeader{
33 elf.SectionHeader{Name: "", Type: elf.SHT_NULL, Flags: 0x0, Addr: 0x0, Offset: 0x0, Size: 0x0, Link: 0x0, Info: 0x0, Addralign: 0x0, Entsize: 0x0, FileSize: 0x0},
34 elf.SectionHeader{Name: ".interp", Type: elf.SHT_PROGBITS, Flags: elf.SHF_ALLOC, Addr: 0x400238, Offset: 0x238, Size: 0x1c, Link: 0x0, Info: 0x0, Addralign: 0x1, Entsize: 0x0, FileSize: 0x1c},
35 elf.SectionHeader{Name: ".note.ABI-tag", Type: elf.SHT_NOTE, Flags: elf.SHF_ALLOC, Addr: 0x400254, Offset: 0x254, Size: 0x20, Link: 0x0, Info: 0x0, A (…)
    [all...]
  /bionic/tests/
Android.build.prebuilt.mk 20 LOCAL_MODULE_PATH_32 := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/bionic-loader-test-libs/prebuilt-elf-files
21 LOCAL_MODULE_PATH_64 := $(TARGET_OUT_DATA_NATIVE_TESTS)/bionic-loader-test-libs/prebuilt-elf-files
24 LOCAL_SRC_FILES_arm := prebuilt-elf-files/arm/$(bionic_tests_module)
25 LOCAL_SRC_FILES_arm64 := prebuilt-elf-files/arm64/$(bionic_tests_module)
26 LOCAL_SRC_FILES_x86 := prebuilt-elf-files/x86/$(bionic_tests_module)
27 LOCAL_SRC_FILES_x86_64 := prebuilt-elf-files/x86_64/$(bionic_tests_module)
28 LOCAL_SRC_FILES_mips := prebuilt-elf-files/mips/$(bionic_tests_module)
29 LOCAL_SRC_FILES_mips64 := prebuilt-elf-files/mips64/$(bionic_tests_module)
  /toolchain/binutils/binutils-2.27/gas/testsuite/gas/alpha/
alpha.exp 23 set elf [expr [istarget *-*-elf*] \
29 set elf 0
32 if $elf {
33 run_dump_test "elf-reloc-1"
34 run_list_test "elf-reloc-2" ""
35 run_list_test "elf-reloc-3" ""
36 run_dump_test "elf-reloc-4"
37 run_dump_test "elf-reloc-5"
38 run_list_test "elf-reloc-6" "
    [all...]
  /toolchain/binutils/binutils-2.27/gas/testsuite/gas/microblaze/
endian.exp 21 if [istarget microblaze-*-elf] {
  /external/syslinux/gpxe/src/include/gpxe/
elf.h 7 * ELF image format
13 #include <elf.h>
  /toolchain/binutils/binutils-2.27/gas/testsuite/gas/i386/ilp32/elf/
ehopt0.d 1 #source: ../../../elf/ehopt0.s
3 #name: elf ehopt0
  /external/elfutils/libdwfl/
open.c 43 /* Consumes and replaces *ELF only on success. */
45 decompress (int fd __attribute__ ((unused)), Elf **elf)
51 const off_t offset = (*elf)->start_offset;
52 void *const mapped = ((*elf)->map_address == NULL ? NULL
53 : (*elf)->map_address + offset);
54 const size_t mapped_size = (*elf)->maximum_size;
73 Elf *memelf = elf_memory (buffer, size);
82 elf_end (*elf);
83 *elf = memelf
120 Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL); local
    [all...]
  /external/perf_data_converter/src/quipper/
dso_test.cc 7 #include <elf.h>
29 ScopedTempFile elf("/tmp/tempelf.");
32 testing::WriteElfWithBuildid(elf.path(), ".note.gnu.build-id",
36 EXPECT_TRUE(ReadElfBuildId(elf.path(), &buildid));
41 testing::WriteElfWithBuildid(elf.path(), ".notes", expected_buildid);
42 EXPECT_TRUE(ReadElfBuildId(elf.path(), &buildid));
45 testing::WriteElfWithBuildid(elf.path(), ".note", expected_buildid);
46 EXPECT_TRUE(ReadElfBuildId(elf.path(), &buildid));
52 ScopedTempFile elf("/tmp/tempelf.");
54 testing::WriteElfWithMultipleBuildids(elf.path(), {/*empty*/})
    [all...]
  /system/core/libunwindstack/tests/
ElfTest.cpp 17 #include <elf.h>
26 #include <unwindstack/Elf.h>
111 Elf elf(memory_);
113 ASSERT_FALSE(elf.Init(false));
114 ASSERT_FALSE(elf.valid());
118 Elf elf(memory_);
122 // Corrupt the ELF signature.
125 ASSERT_FALSE(elf.Init(false))
    [all...]
  /external/kmod/libkmod/
libkmod-elf.c 21 #include <elf.h>
73 #define ELFDBG(elf, ...) \
74 _elf_dbg(elf, __FILE__, __LINE__, __func__, __VA_ARGS__);
76 static inline void _elf_dbg(const struct kmod_elf *elf, const char *fname, unsigned line, const char *func, const char *fmt, ...)
81 (elf->class & KMOD_ELF_32) ? 32 : 64,
82 (elf->class & KMOD_ELF_MSB) ? 'M' : 'L',
89 #define ELFDBG(elf, ...)
130 static inline uint64_t elf_get_uint(const struct kmod_elf *elf, uint64_t offset, uint16_t size)
137 assert(offset + size <= elf->size);
138 if (offset + size > elf->size)
274 struct kmod_elf *elf; local
    [all...]

Completed in 2762 milliseconds

12 3 4 5 6 7 8 91011>>