[PATCH v2 2/2] powerpc new toolchains fix (crt.S)
Simon Horman
horms at verge.net.au
Thu May 13 11:00:10 EDT 2010
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. Following
> patch makes kexec-tools work for both kexec and kdump. I tested it with
> git kernel (linus-tree) and Freescale/Logic MPC8360ERDK board with
> mpc83xx_defconfig kernel config.
>
> kexec:
> kexec -l vmlinux --command-line="console= ... etc"
> kexec -e
>
> kdump:
> kexec -p vmlinux_dump --command-line="console=... etc"
> echo c > /proc/sysrq-trigger
>
> I also think that is is reasonable:
> - put GAME_CUBE specific code to separate files;
> - combine ppc and ppc64 to powerpc directory (I'm planning to do it.
> And that why in some places my patch have ifdefs for PPC64);
>
> Best regards,
> Maxim Uvarov.
Thanks,
I'm assuming that the silence that this patch set received,
in contrast to the first revision where there was some quick discussion,
means that everyone is ok with these changes. So I've gone ahead and pushed
them into the tree.
> From: Maxim Uvarov <muvarov at gmail.com>
>
> Linker does not provide some vital functions when building freestanding
> applications with a new toolchain, so we have to provide our own CRT.
>
> p.s.
> Without the CRT we won't see any build errors (since the purgatory is
> linked with --no-undefined), but the purgatory code won't work,
> 'kexec -e' will just hang the board.
>
>
> I added option to configure to keep code buildable for old toolchais.
> But there should be way to do this automatically.
I seem to have an old toolchain :-)
> Author: Anton Vorontsov <avorontsov at ru.mvista.com>
> Signed-off-by: Maxim Uvarov <muvarov at gmail.com>
> Signed-off-by: Maxim Uvarov <muvarov at gmail.com>
More information about the kexec
mailing list