Skip to contentSkip to conversation

kexec: Use target linker for purgatory

PATCH In review Geoff Levand 2 participants 2 messages Feb 15, 2008 – Feb 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec: Use target linker for purgatory

From: Geoff Levand <[email protected]>

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

---

Hi,

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

-Geoff

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

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#1 lore raw
Quoted 3 lines · Geoff Levand

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

Thanks Geoff, applied.

Signature · 7 lines
Horms


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec