Path: blob/master/data/templates/src/elf/exe/elf_ppc_template.s
28810 views
; build with:1; nasm elf_ppc_template.s -f bin -o template_ppc_linux.bin23BITS 324ehdr: ; Elf32_Ehdr5db 0x7F, "ELF", 1, 2, 1, 0 ; e_ident6db 0, 0, 0, 0, 0, 0, 0, 0 ;7dw 0x0200 ; e_type = ET_EXEC for an executable8dw 0x1400 ; e_machine = PPC9dd 0x01000000 ; e_version10dd 0x54100000 ; e_entry11dd 0x34000000 ; e_phoff12dd 0 ; e_shoff13dd 0 ; e_flags14dw 0x3400 ; e_ehsize15dw 0x2000 ; e_phentsize16dw 0x0100 ; e_phnum17dw 0 ; e_shentsize18dw 0 ; e_shnum19dw 0 ; e_shstrndx2021ehdrsize equ $ - ehdr2223phdr: ; Elf32_Phdr2425dd 0x01000000 ; p_type = pt_load26dd 0 ; p_offset27dd 0x00100000 ; p_vaddr28dd 0x00100000 ; p_paddr29dd 0xefbeadde ; p_filesz30dd 0xefbeadde ; p_memsz31dd 0x07000000 ; p_flags = rwx32dd 0x00000100 ; p_align3334phdrsize equ $ - phdr3536_start:373839