From 95d6d30c2972bca55dfe20b61e7212f6256cd9b5 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 2 Sep 2015 20:38:18 +0200 Subject: [PATCH] Merge multiboot section to .text section All sections must be page aligned to set the right privileges, so we would many padding bytes otherwise. --- src/arch/x86_64/linker.ld | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/arch/x86_64/linker.ld b/src/arch/x86_64/linker.ld index 84f6b0fb..255c96ca 100644 --- a/src/arch/x86_64/linker.ld +++ b/src/arch/x86_64/linker.ld @@ -19,14 +19,9 @@ ENTRY(start) SECTIONS { . = 1M; - .boot : - { + .text : { /* ensure that the multiboot header is at the beginning */ KEEP(*(.multiboot)) - } - - .text : - { *(.text .text.*) }