Skip to content

Commit c5985df

Browse files
ArcaneNibbledlech
authored andcommitted
bricks/_common/arm_none_eabi.mk: Add -n option for EV3
1 parent 6abc350 commit c5985df

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

bricks/_common/arm_none_eabi.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ LD_FILES += $(PBTOP)/lib/pbio/platform/arm_common.ld
178178
endif
179179

180180
LDFLAGS = $(addprefix -T,$(LD_FILES)) -Wl,-Map=$@.map -Wl,--cref -Wl,--gc-sections
181+
ifeq ($(PB_MCU_FAMILY),TIAM1808)
182+
# "nmagic" mode
183+
# This option (with a legacy name) is used to disable page alignment of sections,
184+
# which makes the resulting ELF file smaller as padding will be eliminated.
185+
LDFLAGS += -n
186+
endif
181187

182188
SUPPORTS_HARDWARE_FP_SINGLE = 0
183189
ifeq ($(PB_MCU_FAMILY),STM32)

0 commit comments

Comments
 (0)