From c2f5dfc28bd047f5725c08c69daf7c18d4c322dc Mon Sep 17 00:00:00 2001 From: powtrix Date: Fri, 3 Apr 2015 12:50:34 +0700 Subject: system/kexec-tools: Removed -fPIC to load kernel. Signed-off-by: Willy Sudiarto Raharjo --- system/kexec-tools/kexec-tools.SlackBuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/kexec-tools/kexec-tools.SlackBuild b/system/kexec-tools/kexec-tools.SlackBuild index e218008c13..2539b9654e 100644 --- a/system/kexec-tools/kexec-tools.SlackBuild +++ b/system/kexec-tools/kexec-tools.SlackBuild @@ -5,7 +5,7 @@ PRGNAM=kexec-tools VERSION=${VERSION:-2.0.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -28,7 +28,11 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + # Fixed by Thibaut + # The -fPIC breaks the purgatory of kexec (= the code that passes + #command-line arguments to the kernel): kexec doesn't know how to + #handle the GOT and PLT relocation entries. + SLKCFLAGS="-O2" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" -- cgit v1.2.3