summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_rules2
-rw-r--r--ld_scripts/arm_flash_ram.ld2
2 files changed, 2 insertions, 2 deletions
diff --git a/build_rules b/build_rules
index 3fa0f91..e0f9b59 100644
--- a/build_rules
+++ b/build_rules
@@ -18,7 +18,7 @@ def select_arm(env, family):
CCFLAGS = '-O2 -Wall -ggdb -mcpu=${CPU_FAMILY} -mthumb -ffunction-sections',
CXXFLAGS = '-std=c++11 -fno-exceptions -fno-rtti -Wno-pmf-conversions',
ASFLAGS = '-c -x assembler-with-cpp -mcpu=${CPU_FAMILY} -mthumb',
- LINKFLAGS = '-Wall -mcpu=${CPU_FAMILY} -mthumb -mhard-float -nostartfiles -Wl,-T${LINK_SCRIPT}', # -Wl,--gc-sections
+ LINKFLAGS = '-Wall -mcpu=${CPU_FAMILY} -mthumb -mhard-float -nostartfiles -Wl,-T${LINK_SCRIPT} -Wl,--gc-sections',
CPPPATH = [laks_dir],
LIBPATH = [ld_dir],
diff --git a/ld_scripts/arm_flash_ram.ld b/ld_scripts/arm_flash_ram.ld
index 4839b16..9e3f983 100644
--- a/ld_scripts/arm_flash_ram.ld
+++ b/ld_scripts/arm_flash_ram.ld
@@ -23,7 +23,7 @@ SECTIONS {
PROVIDE(_fini_array_end = .);
} > flash
- .text : ALIGN(16) SUBALIGN(16) {
+ .text : ALIGN(4) SUBALIGN(4) {
*(.text.startup.*)
*(.text)
*(.text.*)