From da7123e518afe0600840b65434b3267b98b39907 Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 1 Dec 2020 21:01:11 -0600 Subject: [PATCH] Linker script --- arch/i386/linker.ld | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 arch/i386/linker.ld diff --git a/arch/i386/linker.ld b/arch/i386/linker.ld new file mode 100755 index 0000000..d766d45 --- /dev/null +++ b/arch/i386/linker.ld @@ -0,0 +1,24 @@ +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) + } +}