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.
This commit is contained in:
Antoine Leca 2011-12-26 17:33:18 +01:00 committed by Arun Thomas
parent a4d01f8a83
commit 36d29dedd5

View File

@ -6,10 +6,10 @@ SECTIONS
.text . : AT (ADDR(.text) - 0x0000) { .text . : AT (ADDR(.text) - 0x0000) {
*(.text) *(.text)
*(.text.*) *(.text.*)
. = ALIGN(4096);
} }
_etext = .; _etext = .;
etext = .; etext = .;
. = ALIGN(4096);
.data . : AT (ADDR(.data) - 0x0000) { .data . : AT (ADDR(.data) - 0x0000) {
_rodata = .; _rodata = .;
@ -39,5 +39,6 @@ SECTIONS
*(.comment.*) *(.comment.*)
*(.note) *(.note)
*(.note.*) *(.note.*)
*(.ident)
} }
} }