summaryrefslogtreecommitdiff
path: root/arch/i386/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/linker.ld')
-rw-r--r--arch/i386/linker.ld19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/i386/linker.ld b/arch/i386/linker.ld
new file mode 100644
index 0000000..a864c34
--- /dev/null
+++ b/arch/i386/linker.ld
@@ -0,0 +1,19 @@
+ENTRY(_start)
+
+SECTIONS {
+ . = 1M;
+ .text BLOCK(4K) : ALIGN(4K) {
+ *(.multiboot)
+ *(.text)
+ }
+ .rodata BLOCK(4K) : ALIGN(4K) {
+ *(.rodata)
+ }
+ .data BLOCK(4K) : ALIGN(4K) {
+ *(.data)
+ }
+ .bss BLOCK(4K) : ALIGN(4K) {
+ *(COMMON)
+ *(.bss)
+ }
+}