2.4 zImage rework

Peter Bergner bergner at borg.umn.edu
Wed Aug 7 06:51:57 EST 2002


On Tue, Aug 06, 2002 at 08:23:10PM +0200, Olaf Hering wrote:
:
: 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)


No, we need the zImage.o to objcopy into, so we can't delete it.
An easy solution would be to just delete the section from zImage.o
before trying to add it.  I'm guessing though we're just missing
some makefile dependancy.  I'll have a look.  Anton, do you remember
what you did to get this error?

Peter


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





More information about the Linuxppc64-dev mailing list