diff options
author | Marvin Borner | 2021-07-10 15:51:54 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-10 15:51:54 +0200 |
commit | ad56eb28f0614db4b7656ade390f1c79b446cbc9 (patch) | |
tree | 7d42ab3c9f36c188dbf54a25b1db1c3db5acb1bd /src/loader/link.ld | |
parent | 176b6eb808f4d02d871c30f6ec19daa179f374d1 (diff) |
A20, E820h, Real Mode Emulation
Diffstat (limited to 'src/loader/link.ld')
-rw-r--r-- | src/loader/link.ld | 14 |
1 files changed, 12 insertions, 2 deletions
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 = .; |