powerpc/nand spl: link libgcc
authorScott Wood <scottwood@freescale.com>
Fri, 10 Dec 2010 21:13:39 +0000 (15:13 -0600)
committerScott Wood <scottwood@freescale.com>
Thu, 16 Dec 2010 20:54:03 +0000 (14:54 -0600)
commit767589a7b2668ea1eb6c0b80e432b2953b9928bc
tree1350c3a0a172f31c9d7ec832e24c69fd671c9982
parentf8689b9eb3a7f6925cd50404a12479889188c510
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>
nand_spl/board/amcc/acadia/Makefile
nand_spl/board/amcc/bamboo/Makefile
nand_spl/board/amcc/canyonlands/Makefile
nand_spl/board/amcc/kilauea/Makefile
nand_spl/board/amcc/sequoia/Makefile
nand_spl/board/freescale/mpc8313erdb/Makefile
nand_spl/board/freescale/mpc8315erdb/Makefile
nand_spl/board/sheldon/simpc8313/Makefile