From 48a42daaa1b326f90010228d5b3830bfda9adaac Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Tue, 18 Jan 2011 01:41:05 +0100 Subject: [PATCH] Revert "batman: remove head.lds completely" 01:34:03 <@segher> yuck 01:34:13 <@segher> very bad plan D: This reverts commit 517cb72c0b4ccd2a80e70eab04b01420eaf43513. --- batman/Makefile | 8 ++++++-- batman/head.lds | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 batman/head.lds diff --git a/batman/Makefile b/batman/Makefile index a22b432..8d9f5ac 100644 --- a/batman/Makefile +++ b/batman/Makefile @@ -69,9 +69,9 @@ FILE_V28: head.bin exploit.bin $(loader) $(Q)./pack.sh $@ $^ $(Q)$(TOOLS)/lego-cksum $@ -head.bin: head.o +head.bin: head.elf @echo " OBJCOPY $@" - $(Q)$(OBJCOPY) -Ielf32-powerpc -Obinary $< $@ + $(Q)$(OBJCOPY) -Obinary $< $@ exploit.bin: exploit.elf @echo " OBJCOPY $@" @@ -81,6 +81,10 @@ exploit.elf: lego.lds exploit.o @echo " LINK $@" $(Q)$(LD) -T $^ -o $@ +head.elf: head.lds head.o + @echo " LINK $@" + $(Q)$(LD) -T $^ -o $@ + exploit.o: exploit.s @echo " ASSEMBLE $@" $(Q)$(CC) $(CFLAGS) -c $< -o $@ diff --git a/batman/head.lds b/batman/head.lds new file mode 100644 index 0000000..0e91c43 --- /dev/null +++ b/batman/head.lds @@ -0,0 +1,6 @@ +/* Copyright 2008-2009 Segher Boessenkool + This code is licensed to you under the terms of the GNU GPL, version 2; + see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt */ + +OUTPUT_FORMAT("elf32-powerpc") +OUTPUT_ARCH(powerpc:common) -- 2.25.1