PATCH powerpc: Merge asm-ppc*/sections.h

Jon Loeliger jdl at
Fri Sep 16 03:07:51 EST 2005

On Thu, 2005-09-15 at 06:09, Paul Mackerras wrote:
> Jon Loeliger writes:
> > In the Grand Scheme of Things, removing things and making them
> > simpler seems a lofty goal. :-)   Anyone know of any pitfalls that
> > await me if I try to remove these sections, a la pmac and friends?
> You'll probably get most objection from the PReP users, for whom
> getting back a few hundred kB is a big deal.  (Maybe we should just
> buy both of them a G5 or something. 8-)

OK.  I dug up some data.

Compiled ppc32 *_defconfig across the page.
Section down the left.  All numbers are 4K pages.
OF is the so-called "__openfirmware" section.

	pmac	ibmchrp	stx_gp3	mpc8555_cds
pmac	10	7	0	0
prep	2	2	0	0
chrp	1	1	0	0
OF	2	1	0	0
init	47	46	23	32

Over in arch/ppc/mm/init.c this gets done:

        printk ("Freeing unused kernel memory:");
        if (_machine != _MACH_Pmac)
        if (_machine != _MACH_chrp)
        if (_machine != _MACH_prep)
        if (!have_of)

Toss sections that don't match your _machine.
Everyone tosses init section.
Embedded boards will take no hit.
Ppc64 currently does not have these special sections
    and hence will see no impact here.

That is the cost of removing these section identifiers.

So, is everyone prepared to live with these few pages
of occasional increased image size and remove the
special sections?


More information about the Linuxppc-dev mailing list