Home
last modified time | relevance | path

Searched refs:elfhdr (Results 1 – 2 of 2) sorted by relevance

/titanic_50/usr/src/psm/stand/boot/common/
H A Dreadfile.c55 #define elfhdr ex.Elfhdr macro
224 i = xread(fd, (char *)&elfhdr, sizeof (Elf64_Ehdr)); in readfile()
232 if (*(int *)&elfhdr.e_ident == *(int *)(ELFMAG)) { in readfile()
234 int is64 = (elfhdr.e_ident[EI_CLASS] == in readfile()
239 *(int *)&elfhdr.e_ident[0], in readfile()
240 *(int *)&elfhdr.e_ident[4], in readfile()
241 *(int *)&elfhdr.e_ident[8], in readfile()
242 *(int *)&elfhdr.e_ident[12]); in readfile()
243 dprintf("e_machine\t0x%x\n", elfhdr.e_machine); in readfile()
247 (u_longlong_t)elfhdr.e_entry)); in readfile()
[all …]
/titanic_50/usr/src/psm/stand/bootblks/common/
H A Dboot.fth582 0 value elfhdr
585 : +elfhdr ( index -- value ) elfhdr swap ca+ ;
586 : e_machine ( -- n ) h# 12 +elfhdr w@ ;
587 : e_entry ( -- n ) h# 18 +elfhdr x@ ;
588 : e_phoff ( -- n ) h# 20 +elfhdr x@ ;
589 : e_phentsize ( -- n ) h# 36 +elfhdr w@ ;
590 : e_phnum ( -- n ) h# 38 +elfhdr w@ ;
613 dup to elfhdr