From: Antoine Leca Date: Mon, 26 Dec 2011 16:33:18 +0000 (+0100) Subject: Allow clang for kernel compilation X-Git-Tag: v3.2.0~140 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=36d29dedd5397f347d15ec9aa28cd9c40079ef8d;p=minix.git 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. --- 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) } }