Skip to content
Snippets Groups Projects
Commit 767589a7 authored by Scott Wood's avatar Scott Wood
Browse files

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: default avatarScott Wood <scottwood@freescale.com>
Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
Acked-by: default avatarWolfgang Denk <wd@denx.de>
parent f8689b9e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment