Add syscall handler, still work in progress

Add elf files
This commit is contained in:
Jeremy Soller
2016-08-18 19:44:31 -06:00
parent 7ea16c73d5
commit 910a493e21
2 changed files with 2 additions and 6 deletions
-2
View File
@@ -17,5 +17,3 @@ kernel_file:
.end:
.length equ kernel_file.end - kernel_file
.length_sectors equ .length / 512
times 1024*1024-($-$$) db 0
+2 -4
View File
@@ -1,16 +1,14 @@
ENTRY(kstart)
OUTPUT_FORMAT(elf64-x86-64)
KERNEL_OFFSET = 0;
KERNEL_OFFSET = 0x100000;
SECTIONS {
. = 0x100000;
. = KERNEL_OFFSET;
. += SIZEOF_HEADERS;
. = ALIGN(4096);
. += KERNEL_OFFSET;
.text : AT(ADDR(.text) - KERNEL_OFFSET) {
__text_start = .;
*(.text*)