summaryrefslogtreecommitdiff
path: root/nand_spl/board/amcc/acadia/Makefile
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2010-12-10 15:13:39 -0600
committerWolfgang Denk <wd@denx.de>2010-12-16 23:19:14 +0100
commit97a85b223ab316d11f3a374fecc5d449a1c8a694 (patch)
tree26e166411aa1a59ea04045113052bd59e8aec5ff /nand_spl/board/amcc/acadia/Makefile
parent2f3845199f182f204cbdc5659f0d4f24900660d9 (diff)
powerpc/nand spl: link libgcc
Recent GCC (4.4+) performs out-of-line epilogues in some cases, when optimizing for size. It causes a link error for _restgpr_30_x (and similar) if libgcc is not linked. It actually increases size with very small binaries, due to the fixed size of the out-of-line code, and not having any functions that actually need to restore more than 2 or 3 registers. But I don't see a way to turn it off, other than asking GCC to optimize for speed -- which may also increase size for some boards. Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: Kim Phillips <kim.phillips@freescale.com> Acked-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'nand_spl/board/amcc/acadia/Makefile')
-rw-r--r--nand_spl/board/amcc/acadia/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/nand_spl/board/amcc/acadia/Makefile b/nand_spl/board/amcc/acadia/Makefile
index bee24bcf37..f8ca6541f1 100644
--- a/nand_spl/board/amcc/acadia/Makefile
+++ b/nand_spl/board/amcc/acadia/Makefile
@@ -51,7 +51,7 @@ $(nandobj)u-boot-spl.bin: $(nandobj)u-boot-spl
$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
$(nandobj)u-boot-spl: $(OBJS) $(nandobj)u-boot.lds
- cd $(LNDIR) && $(LD) $(LDFLAGS) $(__OBJS) \
+ cd $(LNDIR) && $(LD) $(LDFLAGS) $(__OBJS) $(PLATFORM_LIBS) \
-Map $(nandobj)u-boot-spl.map \
-o $(nandobj)u-boot-spl