From 36d29dedd5397f347d15ec9aa28cd9c40079ef8d Mon Sep 17 00:00:00 2001 From: Antoine Leca Date: Mon, 26 Dec 2011 17:33:18 +0100 Subject: [PATCH] Allow clang for kernel compilation Remove .ident sections, and force separations of .text and .data sections into separate program headers, for the benefit of the check done by MINIX boot monitor in multiboot mode. --- kernel/arch/i386/kernel.lds | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/arch/i386/kernel.lds b/kernel/arch/i386/kernel.lds index 2e290f383..cdc5380fb 100644 --- a/kernel/arch/i386/kernel.lds +++ b/kernel/arch/i386/kernel.lds @@ -6,10 +6,10 @@ SECTIONS .text . : AT (ADDR(.text) - 0x0000) { *(.text) *(.text.*) - . = ALIGN(4096); } _etext = .; etext = .; + . = ALIGN(4096); .data . : AT (ADDR(.data) - 0x0000) { _rodata = .; @@ -39,5 +39,6 @@ SECTIONS *(.comment.*) *(.note) *(.note.*) + *(.ident) } } -- 2.44.0