kexec tools gcc 4.1.0 issue
Mohan Kumar M
mohan at in.ibm.com
Wed Feb 15 23:57:22 EST 2006
Hi,
One more patch is required to solve the gcc 4.1.0 issue with kexec-tools.
When users run ./configure script without running autoconf, -mcall-aixdesc flag
will not be added to the EXTRA_CFLAGS.
This patch adds the flag to configure script also. So that even if the user does
not run autoconf, -mcall-aixdesc flag is added to EXTRA_CFLAGS.
This patch is required in addition to
kexec-ppc-gcc410-fix.patch. When users run ./configure
script without running autoconf, "-mcall-aixdesc" flag will
not be included to the EXTRA_CFLAGS. This patch adds this
flag to EXTRA_CLFAGS in "configure" script also.
Signed-off-by: Mohan <mohan at in.ibm.com>
---
configure | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -puN configure~kexec-ppc-gcc410-fix-2 configure
--- kexec-tools-1.101/configure~kexec-ppc-gcc410-fix-2 2006-02-15 18:01:30.000000000 +0530
+++ kexec-tools-1.101-mohan/configure 2006-02-15 18:03:18.000000000 +0530
@@ -1413,8 +1413,9 @@ fi
EXTRA_CFLAGS=""
# Check whether ppc64. Add -m64 for building 64-bit binary
+# Add -mcall-aixdesc to generate dot-symbols as in gcc 3.3.3
if test "$ARCH" = ppc64; then
- EXTRA_CFLAGS="$EXTRA_CFLAGS -m64"
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -m64 -mcall-aixdesc"
fi;
# Check whether --with-objdir or --without-objdir was given.
_
On Tue, Feb 14, 2006 at 05:37:48PM +0530, Mohan Kumar M wrote:
> Hi,
>
> Latest kexec tools for PPC64 with purgatory patch
> (ppc64-kdump-purgatory-backup-support.patch) was not working with gcc
> version 4.1.0 due to the change in object file generation.
>
> Here is the patch to fix this issue.
>
> This patch is created on top of the following level of
> kexec-tools:
>
> - kexec-tools-1.101.tar.gz (from eric biederman's site or
> from lse site)
> - kexec-tools-1.101-kdump6.patch (consolidated patch posted
> on
> http://lse.sourceforge.net/kdump/patches/1.101-kdump6/kexec-tools-1.101-kdump6.patch)
>
> Review and suggestions are welcome.
>
> Note:
> Resending the patch since its not delivered to both fastboot and
> linuxppc64-dev mailing list.
>
> Regards,
> Mohan.
More information about the Linuxppc64-dev
mailing list