Commit:     08a644ecef9383b109b763f5087265fd1759875f
Parent:     54a24cbbd0184faffc37c39cd3a896f4ddac3e03
Author:     Stephen Rothwell <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 7 16:13:29 2007 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Dec 20 17:13:34 2007 +1100

    [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
    Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/kernel/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index ca51f0c..9374bc9 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -3,7 +3,7 @@
 ifeq ($(CONFIG_PPC64),y)
-EXTRA_CFLAGS   += -mno-minimal-toc
+CFLAGS_prom_init.o     += -mno-minimal-toc
 ifeq ($(CONFIG_PPC32),y)
 CFLAGS_prom_init.o      += -fPIC
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to