Without .rodata*, it would stick the flash copy of the data on top of
any further .rodata* sections. Fortunately, the linker catches that
and complains...
Signed-off-by: Keith Packard <keithp@keithp.com>
PRODUCT_DEF=-DMEGAMETRUM
IDPRODUCT=0x000a
PRODUCT_DEF=-DMEGAMETRUM
IDPRODUCT=0x000a
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS)
+CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -Os -g
PRODUCT_DEF=-DSTM_DEMO
IDPRODUCT=0x000a
PRODUCT_DEF=-DSTM_DEMO
IDPRODUCT=0x000a
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS)
+CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -g -Os
AO_CFLAGS=-I. -I../stm -I../core -I..
STM_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m3 -mthumb -ffreestanding -nostdlib $(AO_CFLAGS) $(SAT_CFLAGS)
AO_CFLAGS=-I. -I../stm -I../core -I..
STM_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m3 -mthumb -ffreestanding -nostdlib $(AO_CFLAGS) $(SAT_CFLAGS)
+LDFLAGS=-L../stm -Wl,-Taltos.ld
+
.text : {
*(.interrupt) /* Interrupt vectors */
.text : {
*(.interrupt) /* Interrupt vectors */
- *(.text) /* Executable code */
- *(.rodata) /* Constants */
+ *(.text*) /* Executable code */
+ *(.rodata*) /* Constants */