-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4d49da
commit eb4abf6
Showing
11 changed files
with
106 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
BITS 32 | ||
ehdr: ; Elf32_Ehdr | ||
db 0x7F, "ELF", 1, 2, 1, 0 ; e_ident | ||
db 0, 0, 0, 0, 0, 0, 0, 0 ; | ||
dw 0x0200 ; e_type = ET_EXEC for an executable | ||
dw 0x2800 ; e_machine = AARCH64 | ||
dd 0x01000000 ; e_version | ||
dd 0x54800000 ; e_entry | ||
dd 0x34000000 ; e_phoff | ||
dd 0 ; e_shoff | ||
dd 0 ; e_flags | ||
dw 0x3400 ; e_ehsize | ||
dw 0x2000 ; e_phentsize | ||
dw 0x0100 ; e_phnum | ||
dw 0 ; e_shentsize | ||
dw 0 ; e_shnum | ||
dw 0 ; e_shstrndx | ||
|
||
ehdrsize equ $ - ehdr | ||
|
||
phdr: ; Elf32_Phdr | ||
|
||
dd 0x01000000 ; p_type = pt_load | ||
dd 0 ; p_offset | ||
dd 0x00800000 ; p_vaddr | ||
dd 0x00800000 ; p_paddr | ||
dd 0xefbeadde ; p_filesz | ||
dd 0xefbeadde ; p_memsz | ||
dd 0x07000000 ; p_flags = rwx | ||
dd 0x00100000 ; p_align | ||
|
||
phdrsize equ $ - phdr | ||
|
||
_start: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
; build with: | ||
|
||
BITS 64 | ||
|
||
|
||
ehdr: ; Elf32_Ehdr | ||
db 0x7F, "ELF", 2, 2, 1, 0 ; e_ident | ||
db 0, 0, 0, 0, 0, 0, 0, 0 ; | ||
dw 0x0200 ; e_type = ET_EXEC for an executable | ||
dw 0x1600 ; e_machine = PowerPC | ||
dd 0x01000000 ; e_version | ||
dq 0x7810000000000000 ; e_entry | ||
dq 0x4000000000000000 ; e_phoff | ||
dq 0 ; e_shoff | ||
dd 0 ; e_flags | ||
dw 0x4000 ; e_ehsize | ||
dw 0x3800 ; e_phentsize | ||
dw 0x0100 ; e_phnum | ||
dw 0 ; e_shentsize | ||
dw 0 ; e_shnum | ||
dw 0 ; e_shstrndx | ||
|
||
phdr: ; Elf32_Phdr | ||
dd 0x01000000 ; p_type = PT_LOAD | ||
dd 0x07000000 ; p_flags = rwx | ||
dq 0 ; p_offset | ||
dq 0x0010000000000000 ; p_vaddr | ||
dq 0x0010000000000000 ; p_paddr | ||
dq 0xDEADBEEF ; p_filesz | ||
dq 0xDEADBEEF ; p_memsz | ||
dq 0x0000100000000000 ; p_align | ||
|
||
_start: |
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters