[patch] kexec: Use target linker for purgatory

Geoff Levand geoffrey.levand at am.sony.com
Fri Feb 15 00:27:19 EST 2008

From: Geoff Levand <geoffrey.levand at am.sony.com>

Pugatory files need to be linked with the target linker,
not the build linker.

Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com>


This is a resend from last December. It fixes a cross compile
build error.  Please appy.


diff --git a/purgatory/Makefile b/purgatory/Makefile
index a543cdb..e7d2f15 100644
--- a/purgatory/Makefile
+++ b/purgatory/Makefile
@@ -42,7 +42,7 @@ $(PURGATORY): LDFLAGS+=--no-undefined -nostartfiles -nostdlib -nodefaultlibs \
 	$(MKDIR) -p $(@D)
-	$(LD) $(LDFLAGS) -o $@ $^
+	$(CC) $(LDFLAGS) -o $@ $^
 #	$(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) --no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB)

More information about the kexec mailing list