Make sure `kern_entry` at the beginning.

master
WangRunji 7 years ago
parent af0e90ca1c
commit 4c1137a107

@ -1,4 +1,4 @@
.section .text,"ax",%progbits .section .entry
.globl kern_entry .globl kern_entry
kern_entry: kern_entry:
la sp, bootstacktop la sp, bootstacktop

@ -14,7 +14,8 @@ SECTIONS
. = BASE_ADDRESS; . = BASE_ADDRESS;
.text : { .text : {
*(.text.kern_entry .text .stub .text.* .gnu.linkonce.t.*) *(.entry)
*(.text .stub .text.* .gnu.linkonce.t.*)
} }
PROVIDE(etext = .); /* Define the 'etext' symbol to this value */ PROVIDE(etext = .); /* Define the 'etext' symbol to this value */

Loading…
Cancel
Save