Re: [PATCH v2 2/2] powerpc new toolchains fix (crt.S)

2010-05-13 Thread Simon Horman
On Wed, May 12, 2010 at 11:08:49AM +0400, Maxim Uvarov wrote: Hello everybody, Changes from previous version: - removed bogus hyphen from the patch; - move ifdefs to crt.S instead of Makefile Please find here patch for user land kexec-tools application.

Re: [PATCH v2 2/2] powerpc new toolchains fix (crt.S)

2010-05-13 Thread Segher Boessenkool
Linker does not provide some vital functions when building freestanding applications with a new toolchain, That's because the compiler provides those functions, not the linker. so we have to provide our own CRT. ...in libgcc. Why don't you link against that? p.s. Without the CRT we

Re: [PATCH v2 2/2] powerpc new toolchains fix (crt.S)

2010-05-13 Thread Anton Vorontsov
On Thu, May 13, 2010 at 07:27:59PM +0200, Segher Boessenkool wrote: Linker does not provide some vital functions when building freestanding applications with a new toolchain, That's because the compiler provides those functions, not the linker. so we have to provide our own CRT. ...in

[PATCH v2 2/2] powerpc new toolchains fix (crt.S)

2010-05-12 Thread Maxim Uvarov
Hello everybody, Changes from previous version: - removed bogus hyphen from the patch; - move ifdefs to crt.S instead of Makefile Please find here patch for user land kexec-tools application. Following patch makes kexec-tools work for both kexec and kdump. I