Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KxOPR-0005Ly-S3 for mharc-grub-devel@gnu.org; Tue, 04 Nov 2008 11:05:37 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxOPQ-0005Lo-0J for grub-devel@gnu.org; Tue, 04 Nov 2008 11:05:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxOPN-0005LP-8c for grub-devel@gnu.org; Tue, 04 Nov 2008 11:05:34 -0500 Received: from [199.232.76.173] (port=49666 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxOPN-0005LM-60 for grub-devel@gnu.org; Tue, 04 Nov 2008 11:05:33 -0500 Received: from igw2.br.ibm.com ([32.104.18.25]:38181) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KxOPM-00071T-TH for grub-devel@gnu.org; Tue, 04 Nov 2008 11:05:33 -0500 Received: from d24relay01.br.ibm.com (unknown [9.8.31.16]) by igw2.br.ibm.com (Postfix) with ESMTP id A951017F741 for ; Tue, 4 Nov 2008 14:04:00 -0200 (BRDT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mA4G56QU4333568 for ; Tue, 4 Nov 2008 13:05:06 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mA4G5QRV006468 for ; Tue, 4 Nov 2008 14:05:26 -0200 Received: from [9.18.253.73] (dyn536766.br.ibm.com [9.18.253.73]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id mA4G5QRu006464; Tue, 4 Nov 2008 14:05:26 -0200 From: Manoel To: The development of GRUB 2 In-Reply-To: <1225127982.4991.7.camel@dv> References: <1224622323.31194.81.camel@localhost.localdomain> <1224784802.9254.56.camel@manoel-laptop> <1224788935.16720.38.camel@localhost.localdomain> <1224885201.7358.53.camel@manoel-laptop> <1225127982.4991.7.camel@dv> Content-Type: text/plain Date: Tue, 04 Nov 2008 14:05:25 -0200 Message-Id: <1225814725.6767.20.camel@manoel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Carlos Roberto do Nascimento Costa , Hollis Blanchard Subject: Re: PPC64 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 16:05:36 -0000 I was able to solve this thanks to Hollis and Segher. What was need was a flag to gcc ( -mlong-call) so that gcc puts indirect branches instead of direct branches when needed to prevent the 32mb limitation (as stated at gcc manpages). My doubt is where is the best place to put this flag so that it will be passed to all gcc calls by default? On Mon, 2008-10-27 at 13:19 -0400, Pavel Roskin wrote: > On Fri, 2008-10-24 at 19:53 -0200, Manoel wrote: > > Changing the load-base worked in the P5 machine but when I tested in the > > P6 machine I got the following message: > > Relocation overflow > > In function grub_arch_dl_relocate_symbols. > > It means that I'm lacking memory? > > No. Look at the code. For R_PPC_REL24, delta is shifted by 6 bits left > and right and should stay the same. It's a 32-bit signed integer. The > overflow would happen for positive numbers that exceed (0x7fffffff>>6) > or 0x01ffffff. A similar limit exists for negative numbers. I suggest > that you add some print statements to find out what's happening. >