diff options
author | Scott Wood <scottwood@freescale.com> | 2010-12-10 15:13:39 -0600 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2010-12-16 14:54:03 -0600 |
commit | 767589a7b2668ea1eb6c0b80e432b2953b9928bc (patch) | |
tree | 1350c3a0a172f31c9d7ec832e24c69fd671c9982 /nand_spl/board/sheldon/simpc8313/Makefile | |
parent | f8689b9eb3a7f6925cd50404a12479889188c510 (diff) | |
download | bootable_bootloader_goldelico_gta04-767589a7b2668ea1eb6c0b80e432b2953b9928bc.zip bootable_bootloader_goldelico_gta04-767589a7b2668ea1eb6c0b80e432b2953b9928bc.tar.gz bootable_bootloader_goldelico_gta04-767589a7b2668ea1eb6c0b80e432b2953b9928bc.tar.bz2 |
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/sheldon/simpc8313/Makefile')
-rw-r--r-- | nand_spl/board/sheldon/simpc8313/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nand_spl/board/sheldon/simpc8313/Makefile b/nand_spl/board/sheldon/simpc8313/Makefile index 86e5ecb..bc6dc65 100644 --- a/nand_spl/board/sheldon/simpc8313/Makefile +++ b/nand_spl/board/sheldon/simpc8313/Makefile @@ -55,7 +55,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 |