From: Stephen Rothwell On Tue, 13 Nov 2007 16:35:06 +0530 Kamalesh Babulal wrote: > > The 2.6.24-rc2-git3 kernel build fails during linking > > KSYM .tmp_kallsyms1.S > AS .tmp_kallsyms1.o > LD .tmp_vmlinux2 > KSYM .tmp_kallsyms2.S > AS .tmp_kallsyms2.o > LD .tmp_vmlinux3 > KSYM .tmp_kallsyms3.S > AS .tmp_kallsyms3.o > LD vmlinux.o > ld: TOC section size exceeds 64k > make: *** [vmlinux.o] Error 1 Signed-off-by: Stephen Rothwell Cc: Kamalesh Babulal Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton --- arch/powerpc/kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/powerpc/kernel/Makefile~powerpc-stop-the-toc-overflowing-for-large-builds arch/powerpc/kernel/Makefile --- a/arch/powerpc/kernel/Makefile~powerpc-stop-the-toc-overflowing-for-large-builds +++ a/arch/powerpc/kernel/Makefile @@ -3,7 +3,7 @@ # ifeq ($(CONFIG_PPC64),y) -EXTRA_CFLAGS += -mno-minimal-toc +CFLAGS_prom_init.o += -mno-minimal-toc endif ifeq ($(CONFIG_PPC32),y) CFLAGS_prom_init.o += -fPIC _