| /freebsd/lib/libkldelf/ |
| H A D | kldelf.h | 61 struct elf_file; 76 typedef int (elf_reloc_t)(struct elf_file *ef, const void *reldata, 96 struct elf_file { struct 148 int ef_open(struct elf_file *ef, int verbose); 149 int ef_obj_open(struct elf_file *ef, int verbose); 160 int elf_open_file(struct elf_file *efile, const char *filename, 164 void elf_close_file(struct elf_file *efile); 167 bool elf_compatible(struct elf_file *efile, const GElf_Ehdr *hdr); 170 size_t elf_object_size(struct elf_file *efile, Elf_Type type); 173 size_t elf_pointer_size(struct elf_file *efile); [all …]
|
| H A D | elf.c | 66 elf_open_file(struct elf_file *efile, const char *filename, int verbose) in elf_open_file() 127 elf_close_file(struct elf_file *efile) in elf_close_file() 143 elf_compatible(struct elf_file *efile, const GElf_Ehdr *hdr) in elf_compatible() 153 elf_object_size(struct elf_file *efile, Elf_Type type) in elf_object_size() 163 elf_object_count(struct elf_file *efile, Elf_Type type, size_t file_size) in elf_object_count() 169 elf_read_raw_data(struct elf_file *efile, off_t offset, void *dst, size_t len) in elf_read_raw_data() 182 elf_read_raw_data_alloc(struct elf_file *efile, off_t offset, size_t len, in elf_read_raw_data_alloc() 201 elf_read_raw_string(struct elf_file *efile, off_t offset, char *dst, size_t len) in elf_read_raw_string() 219 elf_read_data(struct elf_file *efile, Elf_Type type, off_t offset, size_t len, in elf_read_data() 263 elf_read_relocated_data(struct elf_file *efile, GElf_Addr address, size_t len, in elf_read_relocated_data() [all …]
|
| H A D | ef_riscv.c | 47 ef_riscv_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype, in ef_riscv_reloc()
|
| H A D | ef_aarch64.c | 42 ef_aarch64_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype, in ef_aarch64_reloc()
|
| H A D | ef_arm.c | 45 ef_arm_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype, in ef_arm_reloc()
|
| H A D | ef_i386.c | 44 ef_i386_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype, in ef_i386_reloc()
|
| H A D | ef_powerpc.c | 44 ef_ppc_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype, in ef_ppc_reloc()
|
| H A D | ef_amd64.c | 44 ef_amd64_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype, in ef_amd64_reloc()
|
| H A D | ef_obj.c | 71 struct elf_file *ef_efile; 269 ef_obj_open(struct elf_file *efile, int verbose) in ef_obj_open()
|
| H A D | ef.c | 49 struct elf_file *ef_efile; 564 ef_open(struct elf_file *efile, int verbose) in ef_open()
|
| /freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_link.c | 61 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \ 62 (off64_t)elf_file.shdr[(index)].sh_offset || \ 63 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \ 64 elf_file.shdr[(index)].sh_size) 469 } elf_file; in dump_elf32() local 486 bzero(&elf_file, sizeof (elf_file)); in dump_elf32() 488 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; in dump_elf32() 489 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; in dump_elf32() 490 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; in dump_elf32() 491 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; in dump_elf32() [all …]
|
| /freebsd/stand/common/ |
| H A D | bootstrap.h | 298 struct elf_file; 299 typedef Elf_Addr (symaddr_fn)(struct elf_file *ef, Elf_Size symidx); 303 int __elfN(reloc)(struct elf_file *ef, symaddr_fn *symaddr,
|
| H A D | load_elf_obj.c | 48 typedef struct elf_file { struct 76 static Elf_Addr __elfN(obj_symaddr)(struct elf_file *ef, Elf_Size symidx); argument 88 struct elf_file ef; in __elfN() 94 bzero(&ef, sizeof(struct elf_file)); in __elfN() 558 __elfN(obj_symaddr)(struct elf_file *ef, Elf_Size symidx) in __elfN()
|
| H A D | load_elf.c | 48 typedef struct elf_file { struct 366 struct elf_file ef; in __elfN() 371 bzero(&ef, sizeof(struct elf_file)); in __elfN() 993 struct elf_file ef; 1001 bzero(&ef, sizeof(struct elf_file)); 1319 __elfN(symaddr)(struct elf_file *ef, Elf_Size symidx)
|
| H A D | reloc_elf.c | 48 __elfN(reloc)(struct elf_file *ef, symaddr_fn *symaddr, const void *reldata, in __elfN()
|
| /freebsd/usr.sbin/kldxref/ |
| H A D | kldxref.c | 263 parse_pnp_list(struct elf_file *ef, const char *desc, char **new_desc, in parse_pnp_list() 448 parse_pnp_entry(struct elf_file *ef, struct pnp_elt *elt, const char *walker) in parse_pnp_entry() 521 record_pnp_info(struct elf_file *ef, const char *cval, in record_pnp_info() 572 struct elf_file *ef, const char *kldname) in parse_entry() 634 struct elf_file ef; in read_kld()
|
| /freebsd/stand/kboot/libkboot/ |
| H A D | dfk.c | 50 struct elf_file struct 197 struct elf_file ef; in read_at_address()
|
| /freebsd/sys/kern/ |
| H A D | link_elf.c | 77 typedef struct elf_file { struct 203 link_elf_methods, sizeof(struct elf_file) 2082 struct elf_file eff; in link_elf_ireloc()
|
| H A D | link_elf_obj.c | 92 typedef struct elf_file { struct 192 link_elf_methods, sizeof(struct elf_file)
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | DynamicTags.def | 104 …atform/bionic/+/6f12bfece5dcc01325e0abba56a46b1bcf991c69/tools/relocation_packer/src/elf_file.cc#31
|