Commit 755ff89d authored by Henrik Nordstrom's avatar Henrik Nordstrom
Browse files

felboot: Prevent GCC from reordering _start. Must be at a known address

parent ab5089a1
......@@ -7,7 +7,7 @@ SECTIONS
. = ALIGN(4);
.text :
{
main.o (.text*)
main.o (.text.start)
*(.text*)
}
. = ALIGN(4);
......
......@@ -19,7 +19,7 @@
#include <stdio.h>
void _start(void)
__attribute__ ((section (".text.start"))) void _start(void)
{
clock_init();
gpio_init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment