]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Stop the TOC overflowing for large builds
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2007 05:13:29 +0000 (16:13 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Dec 2007 06:13:34 +0000 (17:13 +1100)
commit08a644ecef9383b109b763f5087265fd1759875f
tree3373253c0819b82fbd6cd01b29bc24ca08de8574
parent54a24cbbd0184faffc37c39cd3a896f4ddac3e03
[POWERPC] Stop the TOC overflowing for large builds

We were using -mno-minimal-toc on everything in arch/powerpc/kernel,
which means that all the functions in there were putting all their
TOC entries in the top-level TOC, and it was overflowing on an
allyesconfig build.  For various reasons, prom_init.c does need
-mno-minimal-toc, but the other .c files in there can use sub-TOCs
quite happily.  This change is sufficient for now to stop the TOC
overflowing; other directories under arch/powerpc also use
-mno-minimal-toc and could also be changed later if necessary.

Lmbench runs with and without this patch showed no significant speed
differences.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/Makefile