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

This commit is contained in:
Henrik Nordstrom 2013-05-17 17:07:44 +02:00
parent ab5089a1ff
commit 755ff89dde
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ SECTIONS
. = ALIGN(4);
.text :
{
main.o (.text*)
main.o (.text.start)
*(.text*)
}
. = ALIGN(4);

View File

@ -19,7 +19,7 @@
#include <stdio.h>
void _start(void)
__attribute__ ((section (".text.start"))) void _start(void)
{
clock_init();
gpio_init();