Path: blob/master/data/templates/src/elf/exe/elf_aarch64_template.s
32698 views
; build with:1; nasm elf_aarch64_template.s -f bin -o template_aarch64_linux.bin23BITS 644org 0x4000005ehdr: ; Elf32_Ehdr6db 0x7F, "ELF", 2, 1, 1, 0 ; e_ident7db 0, 0, 0, 0, 0, 0, 0, 0 ;8dw 2 ; e_type = ET_EXEC for an executable9dw 0xB7 ; e_machine = AARCH6410dd 1 ; e_version11dq _start ; e_entry12dq phdr - $$ ; e_phoff13dq 0 ; e_shoff14dd 0 ; e_flags15dw ehdrsize ; e_ehsize16dw phdrsize ; e_phentsize17dw 1 ; e_phnum18dw 0 ; e_shentsize19dw 0 ; e_shnum20dw 0 ; e_shstrndx2122ehdrsize equ $ - ehdr2324phdr: ; Elf32_Phdr25dd 1 ; p_type = PT_LOAD26dd 7 ; p_flags = rwx27dq 0 ; p_offset28dq $$ ; p_vaddr29dq $$ ; p_paddr30dq 0xDEADBEEF ; p_filesz31dq 0xDEADBEEF ; p_memsz32dq 0x1000 ; p_align3334phdrsize equ $ - phdr3536global _start3738_start:39404142