Merge pull request #63 from beewoolie/static-stubs

Fix to move stubs into rodata.
This commit is contained in:
Gareth McMullin 2015-01-17 13:18:20 +13:00
commit abcc04d4f3
4 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ static const char tm4c123gh6pm_xml_memory_map[] = "<?xml version=\"1.0\"?>"
"</memory-map>";
uint16_t lmi_flash_write_stub[] = {
static const uint16_t lmi_flash_write_stub[] = {
// _start:
0x4809, // ldr r0, [pc, #36] // _flashbase
0x490b, // ldr r1, [pc, #44] // _addr

View File

@ -98,7 +98,7 @@ static const char nrf51_xml_memory_map[] = "<?xml version=\"1.0\"?>"
#define NRF51_PAGE_SIZE 1024
uint16_t nrf51_flash_write_stub[] = {
static const uint16_t nrf51_flash_write_stub[] = {
// _start:
0x4808, // ldr r0, [pc, #32] ; (24 <_ready>)
0x4909, // ldr r1, [pc, #36] ; (28 <_addr>)

View File

@ -122,7 +122,7 @@ static const char stm32hd_xml_memory_map[] = "<?xml version=\"1.0\"?>"
#define DBGMCU_IDCODE 0xE0042000
#define DBGMCU_IDCODE_F0 0x40015800
uint16_t stm32f1_flash_write_stub[] = {
static const uint16_t stm32f1_flash_write_stub[] = {
// _start:
0x4809, // ldr r0, [pc, #36] // _flashbase
0x490a, // ldr r1, [pc, #40] // _addr

View File

@ -122,7 +122,7 @@ static const char stm32f4_xml_memory_map[] = "<?xml version=\"1.0\"?>"
#define DBGMCU_IDCODE 0xE0042000
/* This routine is uses word access. Only usable on target voltage >2.7V */
uint16_t stm32f4_flash_write_stub[] = {
static const uint16_t stm32f4_flash_write_stub[] = {
// _start:
0x480a, // ldr r0, [pc, #40] // _flashbase
0x490b, // ldr r1, [pc, #44] // _addr