2.4 zImage rework

Olaf Hering olh at suse.de
Wed Aug 7 04:23:10 EST 2002


begin  On Tue, Jul 23, Alan Modra wrote:

>
> On Tue, Jul 23, 2002 at 10:57:49AM +1000, Anton Blanchard wrote:
> >
> > /usr/local/ppc64/bin/powerpc64-linux-objcopy zImage.o \
> > 	--add-section=.kernel:vmlinux=kernel-vmlinux.gz \
> > 	--set-section-flags=.kernel:vmlinux=contents,alloc,load,readonly,data
> > /usr/local/ppc64/bin/powerpc64-linux-objcopy: stnXfLy8: Bad value
> > make[1]: *** [vmlinux] Error 1
> > make[1]: Leaving directory
> > `/home/anton/ppc64/linuxppc64_2_4/arch/ppc64/boot'
> > make: *** [zImage.initrd] Error 2
> >
> > If I rm arch/ppc64/boot/zImage.o and make again it works OK.
>
> I guess zImage.o isn't being recompiled, so you're trying to add a
> .kernel section that already exists.  objcopy ought to give a better
> error message, but it sounds like you need to fix the makefile too.

Is this the right fix?

--- arch/ppc64/boot/Makefile~   Sat Aug  3 02:39:43 2002
+++ arch/ppc64/boot/Makefile    Tue Aug  6 20:20:42 2002
@@ -95,6 +95,7 @@

 vmlinux .config System.map: % : $(TOPDIR)/%
        gzip -cvf9 $(TOPDIR)/$@ > kernel-$@.gz
+       rm -f zImage.o
        $(OBJCOPY) zImage.o \
                --add-section=.kernel:$@=kernel-$@.gz \
                --set-section-flags=.kernel:$@=$(OBJCOPYFLAGS)





--
 $ man clone

BUGS
       Main feature not yet implemented...

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list