thermosphere: fix bugs:

- missing barriers after setting elr/spsr
- .text.start* matching .text.startup (which contains main, thanks @fincs)
This commit is contained in:
TuxSH
2019-07-18 23:43:49 +02:00
parent b124c4383e
commit acae18365b
4 changed files with 23 additions and 6 deletions

View File

@@ -15,8 +15,7 @@ SECTIONS
.text :
{
. = ALIGN(8);
__main_start__ = ABSOLUTE(.);
*(.text.start*)
KEEP(*(.crt0*));
*(.text.unlikely .text.*_unlikely .text.unlikely.*)
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
@@ -24,7 +23,7 @@ SECTIONS
*(.text .stub .text.* .gnu.linkonce.t.*)
. = ALIGN(0x800);
__vectors_start__ = ABSOLUTE(.);
*(.vectors*);
KEEP(*(.vectors*));
. = ALIGN(8);
} >main