From ad56eb28f0614db4b7656ade390f1c79b446cbc9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 10 Jul 2021 15:51:54 +0200 Subject: A20, E820h, Real Mode Emulation --- src/loader/link.ld | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/loader/link.ld') diff --git a/src/loader/link.ld b/src/loader/link.ld index aa97f49..fe00d82 100644 --- a/src/loader/link.ld +++ b/src/loader/link.ld @@ -2,16 +2,24 @@ OUTPUT_FORMAT("elf32-i386") OUTPUT_ARCH(i386) -ENTRY(start) +ENTRY(_start) phys = 0x7e00; SECTIONS { . = phys; + .entry : + { + *(.entry*) + } + + .realmode : { + *(.realmode*) + } + .text : { - *(.text.start) *(.text*) } @@ -27,8 +35,10 @@ SECTIONS .bss : { + bss_begin = .; *(COMMON) *(.bss) + bss_end = .; } end = .; -- cgit v1.2.3