Path: blob/master/data/templates/src/elf/exe/elf_mipsle_template.s
19715 views
; build with:1; nasm elf_mipsle_template.s -f bin -o template_mipsle_linux.bin23BITS 3245org 0x0040000067ehdr: ; Elf32_Ehdr8db 0x7F, "ELF", 1, 1, 1, 0 ; e_ident9db 0, 0, 0, 0, 0, 0, 0, 0 ;10dw 2 ; e_type = ET_EXEC for an executable11dw 0x8 ; e_machine = MIPS12dd 1 ; e_version13dd _start ; e_entry14dd phdr - $$ ; e_phoff15dd 0 ; e_shoff16dd 0 ; e_flags17dw ehdrsize ; e_ehsize18dw phdrsize ; e_phentsize19dw 1 ; e_phnum20dw 0 ; e_shentsize21dw 0 ; e_shnum22dw 0 ; e_shstrndx2324ehdrsize equ $ - ehdr2526phdr: ; Elf32_Phdr27dd 1 ; p_type = PT_LOAD28dd 0 ; p_offset29dd $$ ; p_vaddr30dd $$ ; p_paddr31dd 0xDEADBEEF ; p_filesz32dd 0xDEADBEEF ; p_memsz33dd 7 ; p_flags = rwx34dd 0x1000 ; p_align3536phdrsize equ $ - phdr3738_start:39404142