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:
parent
a4d01f8a83
commit
36d29dedd5
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user