Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
755ff89d
Commit
755ff89d
authored
May 17, 2013
by
Henrik Nordstrom
Browse files
felboot: Prevent GCC from reordering _start. Must be at a known address
parent
ab5089a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
felboot/fel-boot.ld
View file @
755ff89d
...
@@ -7,7 +7,7 @@ SECTIONS
...
@@ -7,7 +7,7 @@ SECTIONS
. = ALIGN(4);
. = ALIGN(4);
.text :
.text :
{
{
main.o (.text
*
)
main.o (.text
.start
)
*(.text*)
*(.text*)
}
}
. = ALIGN(4);
. = ALIGN(4);
...
...
felboot/main.c
View file @
755ff89d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include <stdio.h>
#include <stdio.h>
void
_start
(
void
)
__attribute__
((
section
(
".text.start"
)))
void
_start
(
void
)
{
{
clock_init
();
clock_init
();
gpio_init
();
gpio_init
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment