| /illumos-gate/usr/src/cmd/sgs/libelf/common/ |
| H A D | newehdr.c | 61 Ehdr * 64 Ehdr *eh; in elf_newehdr() 76 if ((eh = (Ehdr *)getehdr(elf)) != 0) { in elf_newehdr() 96 if ((eh = (Ehdr *)getehdr(elf)) != 0) { /* this cooks if necessary */ in elf_newehdr() 104 if ((eh = (Ehdr *)malloc(sizeof (Ehdr))) == 0) { in elf_newehdr()
|
| H A D | newphdr.c | 107 ((Ehdr*)elf->ed_ehdr)->e_phnum = 0; in elf_newphdr() 108 ((Ehdr*)elf->ed_ehdr)->e_phentsize = 0; in elf_newphdr() 118 ((Ehdr*)elf->ed_ehdr)->e_phnum = 0; in elf_newphdr() 119 ((Ehdr*)elf->ed_ehdr)->e_phentsize = 0; in elf_newphdr() 129 ((Ehdr*)elf->ed_ehdr)->e_phnum = (Half)count; in elf_newphdr() 130 ((Ehdr*)elf->ed_ehdr)->e_phentsize in elf_newphdr()
|
| H A D | clscook.c | 223 if (inplace && (fsz >= sizeof (Ehdr))) { in _elf_ehdr() 228 elf->ed_ehdr = (Ehdr *)elf->ed_ident; in _elf_ehdr() 231 elf->ed_ehdr = malloc(sizeof (Ehdr)); in _elf_ehdr() 250 dst.d_size = sizeof (Ehdr); in _elf_ehdr() 263 if (((Ehdr*)elf->ed_ehdr)->e_ident[EI_CLASS] != ELFCLASS) { in _elf_ehdr() 273 if (((Ehdr*)elf->ed_ehdr)->e_version != elf->ed_version) { in _elf_ehdr() 293 Ehdr * eh = elf->ed_ehdr; /* must be present */ in _elf_phdr() 353 register Ehdr *eh = elf->ed_ehdr; /* must be present */ in _elf_shdr()
|
| H A D | update.c | 166 Ehdr * eh = elf->ed_ehdr; in _elf_upd_lib() 349 Ehdr * eh = elf->ed_ehdr; in _elf_upd_usr() 465 Ehdr *eh = elf->ed_ehdr; in wrt() 536 src.d_size = sizeof (Ehdr); in wrt() 748 Ehdr *eh = elf->ed_ehdr; in _elfxx_update() 860 Ehdr *eh; in _elfxx_swap_wrimage() 877 src.d_size = dst.d_size = sizeof (Ehdr); in _elfxx_swap_wrimage()
|
| /illumos-gate/usr/src/lib/libproc/common/ |
| H A D | Psymtab_machelf32.c | 220 Ehdr *ehdr, uint_t phnum, Phdr *phdr) in fake_elf() 254 Ehdr *ep; in fake_elf() 347 size = sizeof (Ehdr); in fake_elf() 453 ep = (Ehdr *)elfdata; in fake_elf() 454 (void) memcpy(ep, ehdr, offsetof(Ehdr, e_phoff)); in fake_elf() 456 ep->e_ehsize = sizeof (Ehdr); in fake_elf() 457 ep->e_phoff = sizeof (Ehdr); in fake_elf()
|
| /illumos-gate/usr/src/cmd/sgs/lari/ |
| H A D | lari.pl | 1210 my ($Ehdr) = 0; 1255 $Ehdr = 1; 1259 $Ehdr = $Rel = $Info = 0; 1262 $Ehdr = $Dyn = $Info = 0; 1265 $Ehdr = $Dyn = $Rel = 0; 1271 $Ehdr = $Dyn = $Rel = $Info = 0; 1273 $Ehdr = $Dyn = $Rel = $Info = 0; 1279 if ($Ehdr eq 1) { 1288 $Ehdr = 0;
|
| /illumos-gate/usr/src/uts/common/exec/elf/ |
| H A D | elf.c | 86 static int getelfhead(vnode_t *, cred_t *, Ehdr *, uint_t *, uint_t *, 88 static int getelfphdr(vnode_t *, cred_t *, const Ehdr *, uint_t, caddr_t *, 90 static int getelfshdr(vnode_t *, cred_t *, const Ehdr *, uint_t, uint_t, 92 static size_t elfsize(const Ehdr *, uint_t, const caddr_t, uintptr_t *); 93 static int mapelfexec(vnode_t *, Ehdr *, uint_t, caddr_t, Phdr **, Phdr **, 187 mapexec_brand(vnode_t *vp, uarg_t *args, Ehdr *ehdr, Addr *uphdr_vaddr, in mapexec_brand() 301 Ehdr ehdr; in elfexec() 308 Ehdr *ehdrp; in elfexec() 1065 elfsize(const Ehdr *ehdrp, uint_t nphdrs, const caddr_t phdrbase, in elfsize() 1112 getelfhead(vnode_t *vp, cred_t *credp, Ehdr *ehdr, uint_t *nshdrs, in getelfhead() [all …]
|
| /illumos-gate/usr/src/uts/common/sys/ |
| H A D | machelf.h | 76 typedef Elf64_Ehdr Ehdr; typedef 123 typedef Elf32_Ehdr Ehdr;
|
| H A D | exec.h | 238 extern int mapexec_brand(vnode_t *, uarg_t *, Ehdr *, Addr *, 240 extern int elfreadhdr(vnode_t *, cred_t *, Ehdr *, uint_t *, caddr_t *,
|
| H A D | kobj.h | 68 Ehdr hdr;
|
| /illumos-gate/usr/src/cmd/sgs/librtld_db/i386/ |
| H A D | plt32_resolution.c | 51 Ehdr ehdr; in rli_func() 68 sizeof (Ehdr)) != PS_OK) { in rli_func()
|
| /illumos-gate/usr/src/cmd/sgs/librtld_db/common/ |
| H A D | rd_elf.c | 375 psaddr_t addr, Ehdr *ehdr, uint_t *phnum) in _rd_get_ehdr32() 415 Ehdr ehdr; in _rd_get_dyns32() 560 Ehdr ehdr; in iter_map() 635 sizeof (Ehdr)) != PS_OK) { in iter_map() 639 off += sizeof (Ehdr); in iter_map()
|
| H A D | _rtld_db.h | 137 psaddr_t, Ehdr *, uint_t *);
|
| /illumos-gate/usr/src/boot/sys/sys/ |
| H A D | elf_generic.h | 63 __ElfType(Ehdr);
|
| /illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
| H A D | elfdump.c | 121 Ehdr *ehdr; /* ELF header for file */ 464 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) in sections() 554 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, in unwind_eh_frame() 910 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, in unwind() 1032 Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, in init_symtbl_state() 1379 uchar_t osabi, Ehdr *ehdr, uint_t flags) in cap_section() 1753 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, in cap() 1835 Ehdr *ehdr) in interp() 1912 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in syminfo() 2494 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in symbols() [all …]
|
| /illumos-gate/usr/src/cmd/mdb/common/modules/krtld/ |
| H A D | krtld.c | 41 Ehdr hdr; 156 dump_ehdr(const Ehdr *ehdr) in dump_ehdr()
|
| /illumos-gate/usr/src/uts/sparc/krtld/ |
| H A D | kobj_isa.c | 45 elf_mach_ok(Ehdr *h) in elf_mach_ok()
|
| /illumos-gate/usr/src/cmd/mdb/common/mdb/ |
| H A D | mdb_gelf.h | 97 extern void mdb_gelf_ehdr_to_gehdr(Ehdr *, GElf_Ehdr *);
|
| /illumos-gate/usr/src/cmd/sgs/rtld/common/ |
| H A D | object.c | 45 static Ehdr dehdr = { { ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3, 235 Ehdr *ehdr; in elf_obj_fini()
|
| H A D | elf.c | 144 elf_cap_check(Fdesc *fdp, Ehdr *ehdr, Rej_desc *rej) in elf_cap_check() 209 Ehdr *ehdr; in elf_verify() 217 if (size < sizeof (Ehdr) || in elf_verify() 229 ehdr = (Ehdr *)addr; in elf_verify() 462 Ehdr *ehdr = (Ehdr *)ADDR(lmp); in elf_entry_point() 1628 Ehdr *ehdr = (Ehdr *)addr;
|
| /illumos-gate/usr/src/uts/sun4/os/ |
| H A D | mlsetup.c | 394 Ehdr *ehdr; 409 ehdr = (Ehdr *)(uintptr_t)eadr;
|
| /illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
| H A D | elf.c | 33 Elf_ehdr(Lm_list *lml, Ehdr *ehdr, Shdr *shdr0) in Elf_ehdr()
|
| /illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
| H A D | phdr.c | 226 Ehdr *ehdr = obj_state->os_ehdr; in process_args() 351 Ehdr *ehdr = argstate->obj_state->os_ehdr; in print_phdr() 690 Ehdr *ehdr = obj_state->os_ehdr; in cmd_body() 823 Ehdr *ehdr = obj_state->os_ehdr; in cmd_body()
|
| /illumos-gate/usr/src/cmd/sgs/include/ |
| H A D | libld.h | 253 Ehdr *ofl_dehdr; /* default elf header, and new elf */ 254 Ehdr *ofl_nehdr; /* header describing this file */ 847 Ehdr *ifl_ehdr; /* elf header describing this file */
|
| /illumos-gate/usr/src/cmd/sgs/ldprof/common/ |
| H A D | profile.c | 172 Ehdr * ehdr; /* ELF header for file */ in profile_open() 214 ehdr = (Ehdr *)lpc; in profile_open()
|