summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohan <mohan@in.ibm.com>2006-07-27 11:12:25 -0600
committerEric W. Biederman <ebiederm@xmission.com>2006-07-27 11:12:25 -0600
commitad0f10320e3393d7ca699ac5bcc81726994220c7 (patch)
tree8f507c4e0d0ffd30c55271d93ce0ea67c2eb3c38
parent10d673dfd32537f2d5e14c07d79b4c63a8bcd7a9 (diff)
gcc 4.1.0 ppc64 fix
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. GCC 4.1.0 (for ppc) generates object files without dot-symbols. This new format breaks subroutine calls using assembly language mnemonic. This patch restores the old convention, i.e produce the object files with dot-symbols using the flag "-mcall-aixdesc". Note: Earlier versions of gcc compilers generated object files with dot-symbols. Signed-off-by: Mohan <mohan@in.ibm.com> Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c1d9224..af8d9c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,8 +53,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;
AC_ARG_WITH([objdir], AC_HELP_STRING([--with-objdir=<dir>],[select directory for object files]),