From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757006AbaGOCNq (ORCPT ); Mon, 14 Jul 2014 22:13:46 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.227]:62532 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753506AbaGOCNn (ORCPT ); Mon, 14 Jul 2014 22:13:43 -0400 Date: Mon, 14 Jul 2014 22:13:34 -0400 From: Steven Rostedt To: Benjamin Herrenschmidt Cc: LKML , linuxppc-dev@lists.ozlabs.org, Anton Blanchard , Olof Johansson Subject: Re: [PATCH] powerpc: Revert removing of _INIT_GLOBAL(), _STATIC() and _INIT_STATIC() Message-ID: <20140714221334.4b6109e0@gandalf.local.home> In-Reply-To: <1405389955.9343.48.camel@pasglop> References: <20140714201204.7b6fcd8e@gandalf.local.home> <1405389955.9343.48.camel@pasglop> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Jul 2014 12:05:55 +1000 Benjamin Herrenschmidt wrote: > On Mon, 2014-07-14 at 20:12 -0400, Steven Rostedt wrote: > > I wanted to test some new ftrace code on my PASemi electra powerpc box. > > But unfortunately it failed to build. It failed with this: > > > > LD init/built-in.o > > arch/powerpc/kernel/head_64.o:arch/powerpc/kernel/exceptions-64s.S:874: > > relocation truncated to fit: R_PPC64_REL14 against `.text'+1c90 > > Makefile:864: recipe for target 'vmlinux' failed > > Weird ... what are your gcc and binutils versions ? Smells like a > toolchain issue to me but I need to dig a bit more. Doesn't hit any > of my test configs here. > I built it from scratch from the mainline source repos. dist-ppc-gcc (GCC) 4.6.0 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. GNU assembler (GNU Binutils) 2.21 Copyright 2010 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `powerpc64-unknown-linux'. -- Steve