summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-rules.mk b/target-rules.mk
index d40f573..3d73a5c 100644
--- a/target-rules.mk
+++ b/target-rules.mk
@@ -17,7 +17,7 @@ endif
$(TARGET_ELF): $(TARGET_OBJS) $(LIBDEPS) $(LDSCRIPT)
$(E) "[TL] Linking $@"
- $(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-O3 -Wl,-Map=$(TARGET_MAP) -o $@ $(TARGET_OBJS) -g -T$(LDSCRIPT) $(LIBS)
+ $(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-Map=$(TARGET_MAP) -o $@ $(TARGET_OBJS) $(TARGET_LDFLAGS) -g -T$(LDSCRIPT) $(LIBS)
$(TARGET_MAP): $(TARGET_ELF)