From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CaFjq-0007SL-IT for mharc-grub-devel@gnu.org; Fri, 03 Dec 2004 10:52:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CaFjp-0007S8-BK for grub-devel@gnu.org; Fri, 03 Dec 2004 10:52:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CaFjo-0007Rp-MQ for grub-devel@gnu.org; Fri, 03 Dec 2004 10:52:52 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CaFjo-0007Rf-Hr for grub-devel@gnu.org; Fri, 03 Dec 2004 10:52:52 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CaFaB-0006pW-AV for grub-devel@gnu.org; Fri, 03 Dec 2004 10:42:55 -0500 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 0A541AEE8; Fri, 3 Dec 2004 16:22:04 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 22274-06; Fri, 3 Dec 2004 16:21:57 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id D6C66ADB7; Fri, 3 Dec 2004 16:21:56 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 79E79C064; Fri, 3 Dec 2004 16:21:56 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: Johan Rydberg References: <20041203053646.GA22463@miracle> <87mzwvlf4o.fsf@marco.marco-g.com> <87fz2ntrtc.fsf@night.trouble.net> <87acsvlb8y.fsf@marco.marco-g.com> <877jnztnx2.fsf@night.trouble.net> From: Marco Gerards Date: Fri, 03 Dec 2004 15:20:48 +0000 In-Reply-To: <877jnztnx2.fsf@night.trouble.net> (Johan Rydberg's message of "Fri, 03 Dec 2004 16:13:45 +0100") Message-ID: <87653jl86n.fsf@marco.marco-g.com> 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 X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl 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:52:53 -0000 Johan Rydberg writes: > 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. Isn't that impossible because GRUB has its own GOT? I mean: GRUB has to lookup all symbols itself, etc. If I am wrong, I have no idea how to do it. I hope to finish module loading so it at least works this weekend using the method that can still cause overflows. Can you have a look at the code when I send it in and explain it using the GRUB code? Thanks, Marco