Who in their STUPID mind decided that the CRP flag is INSIDE your CODE SPACE?
ARGH ARGH ARGH!
This commit is contained in:
parent
42b1114e7e
commit
02f73632ad
|
@ -37,6 +37,10 @@ SECTIONS
|
||||||
{
|
{
|
||||||
KEEP(*(.irq_vectors))
|
KEEP(*(.irq_vectors))
|
||||||
KEEP(*(table))
|
KEEP(*(table))
|
||||||
|
*(.text.boot_entry)
|
||||||
|
*(.text.main)
|
||||||
|
. = 0x000002FC ; /* or 1FC for LPC2000 */
|
||||||
|
KEEP(*(crp))
|
||||||
*(.text*)
|
*(.text*)
|
||||||
*(.rodata*)
|
*(.rodata*)
|
||||||
} > flash
|
} > flash
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
#include "lcd/render.h"
|
#include "lcd/render.h"
|
||||||
#include "filesystem/ff.h"
|
#include "filesystem/ff.h"
|
||||||
|
|
||||||
|
__attribute__ ((used, section("crp"))) const uint32_t the_crp=0x87654321;
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
void wrapper(void);
|
void wrapper(void);
|
||||||
|
|
Loading…
Reference in New Issue