mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Bootloader cleanup (UNTESTED!)
- Clean up bootloader asm - Remove fromflash.c - it's not worth doing in C, do it in ASM - Clean up linker script - Force use of symbol inside bootphase2 (otherwise linker garbage-collects it) - Link bootloader with gcc instead of ld
This commit is contained in:
parent
cc7580be7a
commit
86d3195518
5 changed files with 87 additions and 114 deletions
|
@ -9,13 +9,12 @@
|
|||
.extern BootROM
|
||||
|
||||
.section .startphase2,"ax"
|
||||
.code 32
|
||||
.align 0
|
||||
|
||||
.global ramstart
|
||||
ramstart:
|
||||
ldr sp, .stack_end
|
||||
bl BootROM
|
||||
.arm
|
||||
|
||||
.stack_end:
|
||||
.word _stack_end
|
||||
.global ram_start
|
||||
ram_start:
|
||||
ldr sp, =_stack_end
|
||||
bl BootROM
|
||||
|
||||
.ltorg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue