Who in their STUPID mind decided that the CRP flag is INSIDE your CODE SPACE?

ARGH ARGH ARGH!
This commit is contained in:
Stefan `Sec` Zehl 2011-08-05 16:13:14 +02:00
parent 42b1114e7e
commit 02f73632ad
2 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,10 @@ SECTIONS
{
KEEP(*(.irq_vectors))
KEEP(*(table))
*(.text.boot_entry)
*(.text.main)
. = 0x000002FC ; /* or 1FC for LPC2000 */
KEEP(*(crp))
*(.text*)
*(.rodata*)
} > flash

View File

@ -7,6 +7,8 @@
#include "lcd/render.h"
#include "filesystem/ff.h"
__attribute__ ((used, section("crp"))) const uint32_t the_crp=0x87654321;
/**************************************************************************/
void wrapper(void);