Do not rely on build order to set startup symbol (`__k_unpaged_MINIX`)
at kernel binary start
Change-Id: I1ed3f9309fe66ff97e24915938c114d5a159deaf
#include "arch_proto.h" /* K_STACK_SIZE */
-.text
+.section .startup
/*===========================================================================*/
/* MINIX */
/*===========================================================================*/
/* this is the entry point for the MINIX kernel */
b multiboot_init
+.text
multiboot_init:
ldr sp, =load_stack_start /* make usable stack */
mov fp, #0
. = _kern_phys_base;
__k_unpaged__kern_unpaged_start = .;
- .unpaged_text ALIGN(4096) : { unpaged_*.o(.text) }
+ .unpaged_text ALIGN(4096) : { unpaged_*.o(.startup); unpaged_*.o(.text) }
.unpaged_data ALIGN(4096) : { unpaged_*.o(.data .rodata*) }
__k_unpaged__kern_unpaged_edata = .;