HomeSort by relevance Sort by last modified time
    Searched refs:Elf (Results 1 - 25 of 149) sorted by null

1 2 3 4 5 6

  /external/elfutils/libelf/
libelf.h 55 /* Get the ELF types. */
56 #include <elf.h>
65 ELF_T_EHDR, /* ELF header. */
96 unsigned int d_version; /* ELF version. */
134 /* Flags for the ELF structures. */
152 ELF_K_ELF, /* ELF file. */
186 /* Descriptor for the ELF file. */
187 typedef struct Elf Elf;
189 /* Descriptor for ELF file section. *
    [all...]
elf_getident.c 61 elf_getident (elf, ptr)
62 Elf *elf;
65 /* In case this is no ELF file, the handle is invalid and we return
67 if (elf == NULL || elf->kind != ELF_K_ELF)
74 /* We already read the ELF header. Return a pointer to it and store
79 return (char *) (elf->class == ELFCLASS32
80 || (offsetof (struct Elf, state.elf32.ehdr)
81 == offsetof (struct Elf, state.elf64.ehdr)
    [all...]
elf_getbase.c 62 elf_getbase (elf)
63 Elf *elf;
65 return elf == NULL ? (off_t) -1 : elf->start_offset;
elf_kind.c 62 elf_kind (elf)
63 Elf *elf;
65 return elf == NULL ? ELF_K_NONE : elf->kind;
gelf_getclass.c 62 gelf_getclass (elf)
63 Elf *elf;
65 return elf == NULL || elf->kind != ELF_K_ELF ? ELFCLASSNONE : elf->class;
gelf_newehdr.c 1 /* Create new ELF header.
62 gelf_newehdr (elf, class)
63 Elf *elf;
67 ? (unsigned long int) INTUSE(elf32_newehdr) (elf)
68 : (unsigned long int) INTUSE(elf64_newehdr) (elf));
elf_getaroff.c 1 /* Return offset in archive for current file ELF.
63 elf_getaroff (elf)
64 Elf *elf;
67 if (elf == NULL || elf->parent == NULL)
71 Elf *parent = elf->parent;
74 return elf->start_offset - sizeof (struct ar_hdr) - parent->start_offset;
libelfP.h 72 #define elfw2_(Bits, Name) elf##Bits##_##Name
73 #define ElfW2_(Bits, Name) Elf##Bits##_##Name
74 #define ELFW2_(Bits, Name) ELF##Bits##_##Name
187 /* Descriptor for ELF section. */
240 struct Elf *elf; /* The underlying ELF file. */ member in struct:Elf_Scn
281 /* The ELF descriptor. */
282 struct Elf
284 /* What kind of file is underneath (ELF file, archive...). *
344 } elf; member in union:Elf::__anon7969
    [all...]
common.h 70 /* Next try ELF files. */
73 /* Could be an ELF file. */
89 /* Allocate an Elf descriptor and fill in the generic information. */
90 static inline Elf *
93 Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra)
95 Elf *result = (Elf *) calloc (1, sizeof (Elf) + extra);
119 libelf_acquire_all (Elf *elf)
    [all...]
elf_clone.c 61 Elf *
62 elf_clone (Elf *elf, Elf_Cmd cmd)
64 Elf *retval = NULL;
66 if (elf == NULL)
71 rwlock_rdlock (elf->lock);
77 retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset,
78 elf->maximum_size, elf->cmd, elf->parent, elf->kind
    [all...]
elf_getarhdr.c 63 elf_getarhdr (elf)
64 Elf *elf;
66 if (elf == NULL)
69 Elf *parent = elf->parent;
elf_next.c 63 elf_next (elf)
64 Elf *elf;
66 Elf *parent;
70 if (elf == NULL || elf->parent == NULL)
74 parent = elf->parent;
85 ret = __libelf_next_arhdr_wrlock (parent) != 0 ? ELF_C_NULL : elf->cmd;
elf_getshnum.c 1 /* Return number of sections in the ELF file.
63 __elf_getshnum_rdlock (elf, dst)
64 Elf *elf;
70 if (elf == NULL)
73 if (unlikely (elf->kind != ELF_K_ELF))
79 idx = elf->state.elf.scns_last->cnt;
81 || (elf->state.elf.scns_las
    [all...]
elf_memory.c 61 Elf *
gelf_checksum.c 1 /* Convert from file to memory representation. Generic ELF version.
62 gelf_checksum (elf)
63 Elf *elf;
65 if (elf == NULL)
68 return (elf->class == ELFCLASS32
69 ? INTUSE(elf32_checksum) (elf) : INTUSE(elf64_checksum) (elf));
gelf_newphdr.c 1 /* Create new ELF program header.
62 gelf_newphdr (elf, phnum)
63 Elf *elf;
66 return (elf->class == ELFCLASS32
67 ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum)
68 : (unsigned long int) INTUSE(elf64_newphdr) (elf, phnum));
gelf_offscn.c 1 /* Create new ELF header.
62 gelf_offscn (elf, offset)
63 Elf *elf;
66 if (elf->class == ELFCLASS32)
74 return INTUSE(elf32_offscn) (elf, (Elf32_Off) offset);
77 return INTUSE(elf64_offscn) (elf, offset);
elf_newscn.c 65 elf_newscn (elf)
66 Elf *elf;
71 if (elf == NULL)
74 /* We rely on the prefix of the `elf', `elf32', and `elf64' element
76 assert (offsetof (Elf, state.elf.scns_last)
77 == offsetof (Elf, state.elf32.scns_last));
78 assert (offsetof (Elf, state.elf.scns_last
    [all...]
elf_end.c 1 /* Free resources associated with Elf descriptor.
64 elf_end (elf)
65 Elf *elf;
67 Elf *parent;
69 if (elf == NULL)
74 rwlock_wrlock (elf->lock);
76 if (elf->ref_count != 0 && --elf->ref_count != 0)
79 int result = elf->ref_count
    [all...]
  /external/elfutils/libasm/
asm_getelf.c 1 /* Return ELF descriptor associated with the assembler context.
36 Elf *
40 return ctx != NULL ? ctx->out.elf : NULL;
  /external/elfutils/libdw/
dwarf_getelf.c 1 /* Retrieve ELF descriptor used for DWARF access.
60 Elf *
68 return dwarf->elf;
  /external/elfutils/libebl/
libeblP.h 67 /* ELF machine, class, and data encoding. */
73 Elf *elf; member in struct:ebl
89 typedef const char *(*ebl_bhinit_t) (Elf *, GElf_Half, Ebl *, size_t);
ebl-hooks.h 63 bool EBLHOOK(reloc_valid_use) (Elf *, int);
66 bool EBLHOOK(gotpc_reloc_check) (Elf *, int);
144 bool EBLHOOK(check_special_symbol) (Elf *, GElf_Ehdr *, const GElf_Sym *,
148 bool EBLHOOK(bss_plt_p) (Elf *, GElf_Ehdr *);
171 /* Destructor for ELF backend handle. */
  /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));

Completed in 89 milliseconds

1 2 3 4 5 6