From 22af367ab783fc579198d8b6eb4e0e4722a30517 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 17 Jan 2021 20:14:26 -0600 Subject: Initial commit Signed-off-by: Danny Holman --- arch/i386/linker.ld | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 arch/i386/linker.ld (limited to 'arch/i386/linker.ld') 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) + } +} -- cgit v1.2.3