[RFC 3/3] zImage: Exception vector support

David Gibson david at gibson.dropbear.id.au
Wed Feb 21 11:16:53 EST 2007


On Tue, Feb 20, 2007 at 05:02:11PM +0100, Segher Boessenkool wrote:
> > +ps3)
> > +    platformo="$object/head.o $object/ps3-hvcall.o $object/ps3.o"
> > +    ;;
> >
> > Having those vectors makes a 4MB dead gap in the binary image.  The 
> > ps3's
> > loader supports a gziped image so there is no problem, but for the 
> > general
> > case of binary images, there is no way we can have those always in 
> > there.
> 
> If this is an ELF file, you can put the exception vectors in a
> separate segment.  Or if you don't need the entry point to
> be in the low region, (and you don't need that unless your
> boot loader ignores the entry point in the ELF header), you can
> copy the vectors in at startup and have no code linked at 0 at
> all.

No, the initial loader has a hard-wired entry point, that's why this
is necessary.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list