On Tue, Oct 19, 2010 at 12:11:56AM -0500, Matthew McClintock wrote: > On Thu, 2010-09-30 at 19:52 +0400, Maxim Uvarov wrote: > > crt.S patch had fixes for gcc -Os (optimaze for size), same as > > kernel has. Without this fixes powerpc gcc 4.4 generates forever > > loop functions for kexec. > > > > This happends because crtsavres code was spit up to individual files > > (http://gcc.gnu.org/ml/gcc-patches/2008-03/msg01294.html) and > > kexec purgatory code has following options: > > --no-undefined -nostartfiles -nostdlib -nodefaultlibs > > So in that case crtasaveregs function are not defined and final object > > file has been linked without them. This does not happen with applications > > built without -nostdlib, because gcc will add it's standard functions. > > Signed-off-by: Maxim Uvarov <muvarov at gmail.com> > > Acked-by: Matthew McClintock <msm at freescale.com> > > In lieu of > http://lists.infradead.org/pipermail/kexec/2010-October/004600.html Thanks, applied.