From da28970c3e164d4166cb8a3e0fe59c804299ed32 Mon Sep 17 00:00:00 2001 From: Marc Singer Date: Fri, 9 Jan 2015 17:53:18 -0800 Subject: Fix to move stubs into rodata. o Stubs were declared as globals which means they will be initialized data. No need for this. Now, stubs are static const and are only present in the program image. --- src/stm32f4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stm32f4.c') diff --git a/src/stm32f4.c b/src/stm32f4.c index 4f27859..148c31b 100644 --- a/src/stm32f4.c +++ b/src/stm32f4.c @@ -122,7 +122,7 @@ static const char stm32f4_xml_memory_map[] = "" #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 -- cgit v1.2.3