From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CaF8C-0005to-PG for mharc-grub-devel@gnu.org; Fri, 03 Dec 2004 10:14:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CaF8B-0005tF-VE for grub-devel@gnu.org; Fri, 03 Dec 2004 10:14:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CaF8B-0005sV-4Z for grub-devel@gnu.org; Fri, 03 Dec 2004 10:13:59 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaF8B-0005sO-1q for grub-devel@gnu.org; Fri, 03 Dec 2004 10:13:59 -0500 Received: from [193.45.208.6] (helo=griffin.skarpodata.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CaExb-00070R-RB for grub-devel@gnu.org; Fri, 03 Dec 2004 10:03:04 -0500 Received: from localhost.localdomain (183.201.216.81.s-s.siw.siwnet.net [81.216.201.183]) by griffin.skarpodata.com (8.12.10/8.12.10) with ESMTP id iB3GRgld009244; Fri, 3 Dec 2004 17:27:42 +0100 To: Marco Gerards References: <20041203053646.GA22463@miracle> <87mzwvlf4o.fsf@marco.marco-g.com> <87fz2ntrtc.fsf@night.trouble.net> <87acsvlb8y.fsf@marco.marco-g.com> From: Johan Rydberg Date: Fri, 03 Dec 2004 16:13:45 +0100 In-Reply-To: <87acsvlb8y.fsf@marco.marco-g.com> (Marco Gerards's message of "Fri, 03 Dec 2004 14:14:37 +0000") Message-ID: <877jnztnx2.fsf@night.trouble.net> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: The development of GRUB 2 Subject: Re: [ppc patch] grub-mkimage 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: Fri, 03 Dec 2004 15:14:00 -0000 Marco Gerards writes: >> I'm not sure if you have to re-configure GCC to make it EABI-compat, >> or if there's a configuration switch for this. Anyway, as I said, >> it might be worth looking into. > > What I did is using the following options: > > -memb -meabi -msdata=eabi > > After that the R_PPC_REL24 relocation was still there. In addition to > that the R_PPC_EMB_SDA21 relocation was added. So the relative > relocation is still there and things got even more complex... Did I do > something wrong here? No idea. I thought that it would eliminate the REL24 relocations, but I was clearly wrong. See if you can get GCC to generate code that uses a GOT/TOC. ~j