Path: blob/master/data/templates/src/elf/exe/elf_aarch64_template.s
19852 views
; build with:1; nasm elf_aarch64_template.s -f bin -o template_aarch64_linux.bin234BITS 645org 0x4000006ehdr: ; Elf32_Ehdr7db 0x7F, "ELF", 2, 1, 1, 0 ; e_ident8db 0, 0, 0, 0, 0, 0, 0, 0 ;9dw 2 ; e_type = ET_EXEC for an executable10dw 0xB7 ; e_machine = AARCH6411dd 1 ; e_version12dq _start ; e_entry13dq phdr - $$ ; e_phoff14dq 0 ; e_shoff15dd 0 ; e_flags16dw ehdrsize ; e_ehsize17dw phdrsize ; e_phentsize18dw 1 ; e_phnum19dw 0 ; e_shentsize20dw 0 ; e_shnum21dw 0 ; e_shstrndx2223ehdrsize equ $ - ehdr2425phdr: ; Elf32_Phdr26dd 1 ; p_type = PT_LOAD27dd 7 ; p_flags = rwx28dq 0 ; p_offset29dq $$ ; p_vaddr30dq $$ ; p_paddr31dq 0xDEADBEEF ; p_filesz32dq 0xDEADBEEF ; p_memsz33dq 0x1000 ; p_align3435phdrsize equ $ - phdr3637global _start3839_start:40414243