From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E04FA140084 for ; Wed, 14 May 2014 05:41:49 +1000 (EST) Received: by mail-pa0-f41.google.com with SMTP id lj1so651526pab.14 for ; Tue, 13 May 2014 12:41:47 -0700 (PDT) Sender: Guenter Roeck Date: Tue, 13 May 2014 12:41:36 -0700 From: Guenter Roeck To: Benjamin Herrenschmidt Subject: Re: powerpc/ppc64: Allow allmodconfig to build (finally !) Message-ID: <20140513194136.GA15812@roeck-us.net> References: <1399874254.17624.85.camel@pasglop> <20140513002846.GA29753@roeck-us.net> <1399972601.17624.169.camel@pasglop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1399972601.17624.169.camel@pasglop> Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, May 13, 2014 at 07:16:41PM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2014-05-12 at 17:28 -0700, Guenter Roeck wrote: > > > After applying this patch, I get > > > > arch/powerpc/kernel/exceptions-64s.S:269: Error: operand out of range > > (0x000000000000814c is not between 0xffffffffffff8000 and 0x0000000000007ffc) > > arch/powerpc/kernel/exceptions-64s.S:729: Error: operand out of range > > (0x000000000000814c is not between 0xffffffffffff8000 and 0x0000000000007ffc) > > > > with powerpc:defconfig, powerpc:allmodconfig, powerpc:cell_defconfig, and > > powerpc:maple_defconfig. > > > > This is on top of v3.15-rc5. Any idea what is going on ? > > > > Compiler is powerpc64-poky-linux-gcc (GCC) 4.7.2 (from poky 1.4.0-1). > > Interesting... works with all my test configs using 4.7.3... > > I don't have my tree at hand right now, I'll check what that means > tomorrow see if I can find a workaround. > Drives me crazy. With gcc 4.8.2, powerpc:allmodconfig builds, but now I get failures with ppc64e_defconfig and chroma_defconfig: arch/powerpc/kernel/built-in.o: In function `exc_debug_crit_book3e': (.text+0x165ee): relocation truncated to fit: R_PPC64_ADDR16_HI against symbol `interrupt_base_book3e' defined in .text section in arch/powerpc/kernel/built-in.o arch/powerpc/kernel/built-in.o: In function `exc_debug_crit_book3e': (.text+0x16602): relocation truncated to fit: R_PPC64_ADDR16_HI against symbol `interrupt_end_book3e' defined in .text section in arch/powerpc/kernel/built-in.o arch/powerpc/kernel/built-in.o: In function `exc_debug_debug_book3e': (.text+0x1679e): relocation truncated to fit: R_PPC64_ADDR16_HI against symbol `interrupt_base_book3e' defined in .text section in arch/powerpc/kernel/built-in.o arch/powerpc/kernel/built-in.o: In function `exc_debug_debug_book3e': (.text+0x167b2): relocation truncated to fit: R_PPC64_ADDR16_HI against symbol `interrupt_end_book3e' defined in .text section in arch/powerpc/kernel/built-in.o arch/powerpc/kernel/built-in.o: In function `skpinv': arch/powerpc/kernel/exceptions-64e.o:(.text+0x178c6): relocation truncated to fit: R_PPC64_ADDR16_HI against `.text'+178e0 arch/powerpc/kernel/built-in.o: In function `a2_tlbinit_after_linear_map': (.text+0x17966): relocation truncated to fit: R_PPC64_ADDR16_HI against `.text'+17974 arch/powerpc/kernel/built-in.o: In function `.init_core_book3e': arch/powerpc/kernel/exceptions-64e.o:(.text+0x17a7e): relocation truncated to fit: R_PPC64_ADDR16_HI against symbol `interrupt_base_book3e' defined in .text section in arch/powerpc/kernel/built-in.o Worse, that happens even without your patch applied, and the patch does not make a difference :-(. Guenter