Path: blob/master/data/templates/src/elf/exe/elf_riscv64le_template.s
21660 views
; build with:1; nasm elf_riscv64le_template.s -f bin -o template_riscv64le_linux.bin23BITS 6445org 0x0040000067ehdr: ; Elf32_Ehdr8db 0x7F, "ELF", 2, 1, 1, 0 ; e_ident9db 0, 0, 0, 0, 0, 0, 0, 0 ;10dw 2 ; e_type = ET_EXEC for an executable11dw 0xF3 ; e_machine = RISCV12dd 1 ; e_version13dq _start ; e_entry14dq phdr - $$ ; e_phoff15dq 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 7 ; p_flags = rwx29dq 0 ; p_offset30dq $$ ; p_vaddr31dq $$ ; p_paddr32dq 0xDEADBEEF ; p_filesz33dq 0xDEADBEEF ; p_memsz34dq 0x1000 ; p_align3536phdrsize equ $ - phdr3738global _start3940_start:41424344