summaryrefslogtreecommitdiffhomepage
path: root/src/loader/link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/link.ld')
-rw-r--r--src/loader/link.ld14
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 = .;