altos/lpc,altos/stmf0: Use -n flag to work around link editor issue
authorKeith Packard <keithp@keithp.com>
Sat, 22 Apr 2017 00:06:23 +0000 (17:06 -0700)
committerBdale Garbee <bdale@gag.com>
Sat, 22 Apr 2017 17:39:17 +0000 (11:39 -0600)
Something changed in the link editor which makes it complain about 'no
space for program headers' on LPC and STMF0 builds. Somehow, adding
the '-n' flag to the linking step fixes it. It doesn't appear to break
the build, so I guess it's ok?

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/Makefile.defs
src/stmf0/Makefile.defs

index b6d739c2ac5d0758249db9a176417e9b0ba67eec..5bb8133d5579cb82955356b0bb77557ba31c1e72 100644 (file)
@@ -5,7 +5,7 @@ endif
 include $(TOPDIR)/lpc/Makefile-lpc.defs
 include $(TOPDIR)/Makedefs
 
-LDFLAGS=$(CFLAGS) -L$(TOPDIR)/lpc -Wl,-Taltos.ld
+LDFLAGS=$(CFLAGS) -L$(TOPDIR)/lpc -Wl,-Taltos.ld -n
 
 ao_serial_lpc.h: $(TOPDIR)/lpc/baud_rate ao_pins.h
        nickle $(TOPDIR)/lpc/baud_rate `awk '/AO_LPC_CLKOUT/{print $$3}' ao_pins.h` > $@
index a1d93eb5713fcaffbcb215c21dbfe22c92ff009b..3da42874620a92756d3eea2025d7ae8486e8c085 100644 (file)
@@ -4,6 +4,6 @@ endif
 
 include $(TOPDIR)/stmf0/Makefile-stmf0.defs
 
-LDFLAGS=$(CFLAGS) -L$(TOPDIR)/stmf0 -Wl,-Taltos.ld
+LDFLAGS=$(CFLAGS) -L$(TOPDIR)/stmf0 -Wl,-Taltos.ld -n
 
 .DEFAULT_GOAL=all