aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2014-08-25 01:39:26 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2014-12-10 18:50:10 +0900
commit5f4cca00fcd84ee778d2397c700cad8249359486 (patch)
treef2fd25f79be11c6bc59e8544a933045caa09b000
parent1fcfc846b80f5ac75ca04d6c23effd0add9c0867 (diff)
It should be BSS section not to output data to .hex.
-rw-r--r--entry.c2
-rw-r--r--example-fsm-55/hacker-emblem.ld2
2 files changed, 2 insertions, 2 deletions
diff --git a/entry.c b/entry.c
index 0036a3a..1170c6a 100644
--- a/entry.c
+++ b/entry.c
@@ -420,7 +420,7 @@ static void none (void)
#define COMPOSE_STATEMENT(arg0,arg1,arg2) C_S_SUB (arg0, arg1, arg2)
#if MCU_STM32F0
-__attribute__ ((used,section(".data.startup.0")))
+__attribute__ ((used,section(".bss.startup.0")))
uint32_t vectors_in_ram[48];
#endif
diff --git a/example-fsm-55/hacker-emblem.ld b/example-fsm-55/hacker-emblem.ld
index 07761e0..bce4e00 100644
--- a/example-fsm-55/hacker-emblem.ld
+++ b/example-fsm-55/hacker-emblem.ld
@@ -88,7 +88,7 @@ SECTIONS
{
. = ALIGN(8);
__vector_ram_addr__ = .;
- KEEP(*(.data.startup.*))
+ KEEP(*(.bss.startup.*))
} > ram
.process_stack :