| /openbsd/src/usr.bin/ctfconv/ |
| D | elf.c | 35 Elf_Ehdr *eh = (Elf_Ehdr *)p; in iself() 37 if (filesize < sizeof(Elf_Ehdr)) { in iself() 42 if (eh->e_ehsize < sizeof(Elf_Ehdr) || !IS_ELF(*eh)) in iself() 82 Elf_Ehdr *eh = (Elf_Ehdr *)p; in elf_getshstab() 118 Elf_Ehdr *eh = (Elf_Ehdr *)p; in elf_getsymtab() 181 Elf_Ehdr *eh = (Elf_Ehdr *)p; in elf_getsection() 266 Elf_Ehdr *eh = (Elf_Ehdr *)p; in elf_reloc_apply()
|
| /openbsd/src/usr.sbin/crunchgen/ |
| D | elf_hide.c | 45 void load_strtab(Elf_Ehdr * pehdr, char *pexe); 49 void load_symtab(Elf_Ehdr * pehdr, char *pexe); 53 void load_shstr_tab(Elf_Ehdr * pehdr, char *pexe); 57 void hide_sym(Elf_Ehdr * ehdr, Elf_Shdr * symsect, 59 void reorder_syms(Elf_Ehdr * ehdr, Elf_Shdr * symsect, 62 void renum_reloc_syms(Elf_Ehdr * ehdr, Symmap * symmap, 72 Elf_Ehdr *pehdr; in elf_hide() 80 pehdr = (Elf_Ehdr *) pexe; in elf_hide() 155 load_shstr_tab(Elf_Ehdr * pehdr, char *pexe) in load_shstr_tab() 181 load_symtab(Elf_Ehdr * pehdr, char *pexe) in load_symtab() [all …]
|
| D | crunchide.c | 210 if (infstat.st_size < sizeof(Elf_Ehdr) || infstat.st_size > SIZE_MAX) { in hide_syms()
|
| /openbsd/src/usr.bin/nm/ |
| D | elf.c | 115 static int elf_fix_header(Elf_Ehdr *); 116 static int elf_fix_shdrs(Elf_Ehdr *, Elf_Shdr *); 117 static int elf_fix_sym(Elf_Ehdr *, Elf_Sym *); 118 static int elf_shn2type(Elf_Ehdr *, u_int _shn, const char *_sn); 119 static int elf2nlist(Elf_Sym *, Elf_Ehdr *, Elf_Shdr *, char *_shstr, 121 static int elf_symloadx(const char *_name, FILE *, off_t, Elf_Ehdr *, 127 elf_fix_header(Elf_Ehdr *eh) in elf_fix_header() 151 elf_load_shdrs(const char *name, FILE *fp, off_t foff, Elf_Ehdr *head) in elf_load_shdrs() 194 elf_fix_shdrs(Elf_Ehdr *eh, Elf_Shdr *shdr) in elf_fix_shdrs() 219 elf_fix_sym(Elf_Ehdr *eh, Elf_Sym *sym) in elf_fix_sym() [all …]
|
| /openbsd/src/sys/arch/sparc64/stand/ofwboot/ |
| D | elf64_exec.c | 78 elf64_exec(int fd, Elf_Ehdr *elf, u_int64_t *entryp, void **ssymp, void **esymp){ in elf64_exec() 191 size = sizeof(Elf_Ehdr) + (elf->e_shnum * sizeof(Elf_Shdr)); in elf64_exec() 234 elf->e_shoff = sizeof(Elf_Ehdr); in elf64_exec() 237 bcopy(elf, addr, sizeof(Elf_Ehdr)); in elf64_exec() 238 bcopy(shp, addr + sizeof(Elf_Ehdr), elf->e_shnum * sizeof(Elf_Shdr)); in elf64_exec() 245 shp = addr + sizeof(Elf_Ehdr); in elf64_exec() 246 size = sizeof(Elf_Ehdr) + (elf->e_shnum * sizeof(Elf_Shdr)); in elf64_exec()
|
| /openbsd/src/usr.sbin/installboot/ |
| D | i386_nlist.c | 49 static int __elf_is_okay__(Elf_Ehdr *ehdr); 63 __elf_is_okay__(Elf_Ehdr *ehdr) in __elf_is_okay__() 103 Elf_Ehdr ehdr; in __elf_fdnlist() 111 if (pread(fd, &ehdr, sizeof(Elf_Ehdr), (off_t)0) != sizeof(Elf_Ehdr) || in __elf_fdnlist()
|
| /openbsd/src/sys/lib/libsa/ |
| D | loadfile_elf.c | 70 int ELFNAME(exec)(int, Elf_Ehdr *, uint64_t *, int); 73 ELFNAME(exec)(int fd, Elf_Ehdr *elf, uint64_t *marks, int flags) in ELFNAME() 187 maxp += sizeof(Elf_Ehdr); in ELFNAME() 226 off = roundup((sizeof(Elf_Ehdr) + sz), sizeof(Elf_Addr)); in ELFNAME() 279 elf->e_shoff = sizeof(Elf_Ehdr); in ELFNAME()
|
| /openbsd/src/lib/libc/gen/ |
| D | nlist.c | 60 __elf_is_okay__(Elf_Ehdr *ehdr) in __elf_is_okay__() 96 Elf_Ehdr ehdr; in __fdnlist() 104 if (pread(fd, &ehdr, sizeof(Elf_Ehdr), 0) != sizeof(Elf_Ehdr) || in __fdnlist()
|
| /openbsd/src/usr.sbin/mkuboot/ |
| D | copy_elf.c | 53 Elf_Ehdr ehdr, elf; in ELFNAME() 102 vaddr += roundup((sizeof(Elf_Ehdr) + sz), sizeof(Elf_Addr)); in ELFNAME() 103 off = roundup((sizeof(Elf_Ehdr) + sz), sizeof(Elf_Addr)); in ELFNAME() 255 elf.e_shoff = h2elfoff(sizeof(Elf_Ehdr)); in ELFNAME() 263 off = roundup((sizeof(Elf_Ehdr) + sz), sizeof(Elf_Addr)); in ELFNAME()
|
| /openbsd/src/sys/ddb/ |
| D | db_elf.c | 62 Elf_Ehdr *elf; in db_elf_sym_init() 95 elf = (Elf_Ehdr *)symtab; in db_elf_sym_init() 191 Elf_Ehdr *elf = STAB_TO_EHDR(stab); in db_elf_find_strtab() 215 Elf_Ehdr *elf = STAB_TO_EHDR(stab); in db_elf_find_section()
|
| D | db_elf.h | 44 #define STAB_TO_EHDR(stab) ((Elf_Ehdr *)((stab)->private))
|
| D | db_dwarf.c | 456 if (st.st_size < (off_t)sizeof(Elf_Ehdr)) in main() 469 Elf_Ehdr ehdr; in main()
|
| /openbsd/src/sys/dev/ |
| D | ksyms.c | 76 Elf_Ehdr *elf; in ksymsattach() 80 elf = (Elf_Ehdr *)symtab; in ksymsattach()
|
| /openbsd/src/sys/arch/armv7/stand/efiboot/ |
| D | exec.c | 139 Elf_Ehdr *elf = (Elf_Ehdr *)marks[MARK_SYM]; in run_loadfile()
|
| /openbsd/src/sys/arch/hppa/stand/cdboot/ |
| D | elf64.c | 33 ELFNAME(exec)(int fd, Elf_Ehdr *elf, uint64_t *marks, int flags) in ELFNAME()
|
| /openbsd/src/sys/kern/ |
| D | exec_conf.c | 45 .es_hdrsz = sizeof(Elf_Ehdr),
|
| D | exec_elf.c | 96 int elf_check_header(Elf_Ehdr *); 101 int elf_os_pt_note(struct proc *, struct exec_package *, Elf_Ehdr *, int *); 132 elf_check_header(Elf_Ehdr *ehdr) in elf_check_header() 352 Elf_Ehdr eh; in elf_load_file() 603 Elf_Ehdr *eh = epp->ep_hdr; in exec_elf_makecmds() 611 if (epp->ep_hdrvalid < sizeof(Elf_Ehdr)) in exec_elf_makecmds() 1062 elf_os_pt_note(struct proc *p, struct exec_package *epp, Elf_Ehdr *eh, int *namesp) in elf_os_pt_note() 1265 .sh_offset = sizeof(Elf_Ehdr) + 2*sizeof(Elf_Shdr), 1275 Elf_Ehdr ehdr; in coredump_setup_elf()
|
| /openbsd/src/games/hangman/ |
| D | ksyms.c | 114 Elf_Ehdr eh; in ksyms_elf_parse()
|
| /openbsd/src/libexec/ld.so/ |
| D | library.c | 111 Elf_Ehdr *ehdr; in _dl_tryload_shlib() 145 ehdr = (Elf_Ehdr *)hbuf; in _dl_tryload_shlib()
|
| D | library_mquery.c | 109 Elf_Ehdr *ehdr; in _dl_tryload_shlib() 148 ehdr = (Elf_Ehdr *)hbuf; in _dl_tryload_shlib()
|
| D | loader.c | 450 Elf_Ehdr *ehdp; in _dl_self_relro() 454 ehdp = (Elf_Ehdr *)loff; in _dl_self_relro() 521 Elf_Ehdr *ehdr; in _dl_boot() 658 ehdr = (Elf_Ehdr *)dl_data[AUX_base]; in _dl_boot()
|
| /openbsd/src/usr.bin/gprof/ |
| D | elf.c | 51 Elf_Ehdr h; in getnfile()
|
| /openbsd/src/usr.sbin/config/ |
| D | exec_elf.c | 44 Elf_Ehdr elf_ex;
|
| /openbsd/src/sys/arch/octeon/dev/ |
| D | octboot.c | 93 Elf_Ehdr eh; in octboot_kexec() 221 maxp = elfp + sizeof(Elf_Ehdr); in octboot_kexec()
|
| /openbsd/src/libexec/ld.so/ldd/ |
| D | ldd.c | 100 Elf_Ehdr ehdr; in doit()
|