elf: start writing elf loader
This commit is contained in:
parent
175805604e
commit
a6f371b4ad
12 changed files with 4706 additions and 72 deletions
20
testing/link.ld
Normal file
20
testing/link.ld
Normal file
|
@ -0,0 +1,20 @@
|
|||
SECTIONS {
|
||||
. = 0x1000;
|
||||
|
||||
.text : {
|
||||
*(.text*)
|
||||
}
|
||||
|
||||
.rodata : {
|
||||
*(.rodata*)
|
||||
}
|
||||
|
||||
.data : {
|
||||
*(.data*)
|
||||
}
|
||||
|
||||
.bss : {
|
||||
*(.bss*)
|
||||
*(COMMON)
|
||||
}
|
||||
}
|
BIN
testing/sk-hello.elf
Executable file
BIN
testing/sk-hello.elf
Executable file
Binary file not shown.
8
testing/test.asm
Normal file
8
testing/test.asm
Normal file
|
@ -0,0 +1,8 @@
|
|||
bits 64
|
||||
section .text
|
||||
global _start
|
||||
|
||||
_start:
|
||||
int 0x80
|
||||
lol:
|
||||
jmp lol
|
BIN
testing/test.o
Normal file
BIN
testing/test.o
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue