From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XMC2S-0005uV-M5 for mharc-grub-devel@gnu.org; Tue, 26 Aug 2014 04:23:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMC2Q-0005uP-GW for grub-devel@gnu.org; Tue, 26 Aug 2014 04:23:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMC2P-0000M3-8q for grub-devel@gnu.org; Tue, 26 Aug 2014 04:23:34 -0400 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:41781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMC2P-0000Ls-15 for grub-devel@gnu.org; Tue, 26 Aug 2014 04:23:33 -0400 Received: by mail-lb0-f175.google.com with SMTP id c11so940117lbj.20 for ; Tue, 26 Aug 2014 01:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=DR/hBcRW3dkHZ319vcLGa3Kv+YF1MQa8nrRTLRomzT4=; b=RN1gOUb7vZHpQNo7K9j96kZmh09F38VsXKtTgEbW+d0kIviex1HXRtd708gYycnjKi BSfVpyY+Pntu9WU+mAdHxLVtzTfk1aDCMFAxwz1K943RUrIgIXbXW4AOc5J/Hs7ChJoR rqib/ryoaXYtwpcKjB1G5IUn+54tfCb13kcSc0kAu4ncrBMY8Ne63jW2ChISkPYE6J8/ vaJ1Q6QEYmcEy9ACON8ffK9AgLYvACssUiJpO3kMJ5wTS6lM0/LEsjvyMDBvNKN6CS+t WXMo0FyIgRNDcF40eHsj/Z7PKhY1KOoQaz8assXAcvbqEfAsYCTs6QE+hPttJqX9jfpR IPKg== MIME-Version: 1.0 X-Received: by 10.152.9.170 with SMTP id a10mr12917400lab.79.1409041412037; Tue, 26 Aug 2014 01:23:32 -0700 (PDT) Received: by 10.112.123.212 with HTTP; Tue, 26 Aug 2014 01:23:31 -0700 (PDT) In-Reply-To: References: <20140825222907.GA22063@riva.ucam.org> Date: Tue, 26 Aug 2014 12:23:31 +0400 Message-ID: Subject: Re: mips-arc build failure on xz_decompress.img From: Andrei Borzenkov To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22f X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2014 08:23:35 -0000 On Tue, Aug 26, 2014 at 8:52 AM, Andrei Borzenkov wro= te: > On Tue, Aug 26, 2014 at 2:29 AM, Colin Watson wrote= : >> I tried to enable the mips-arc platform in Debian. When test-building, >> I first ran into a GCC uninitialised warning (promoted to an error by >> -Werror), which I fixed in >> http://git.savannah.gnu.org/gitweb/?p=3Dgrub.git;a=3Dcommitdiff;h=3D1de3= a48098053aaebd35232bd73e3ce3f3fdf51c. >> Following that, I get: >> >> if test x0 =3D x1; then ../grub-macho2img xz_decompress.image xz_dec= ompress.img; else objcopy -O binary --strip-unneeded -R .note -R .comme= nt -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version = xz_decompress.image xz_decompress.img; fi >> BFD: Warning: Writing section `.text' to huge (ie negative) file offse= t 0x87cfff48. >> BFD: Warning: Writing section `.rodata' to huge (ie negative) file off= set 0x87d027b8. >> BFD: Warning: Writing section `.data.rel.ro' to huge (ie negative) fil= e offset 0x87d02834. >> BFD: Warning: Writing section `.data' to huge (ie negative) file offse= t 0x87d02898. >> BFD: Warning: Writing section `.got' to huge (ie negative) file offset= 0x87d028a8. >> objcopy:xz_decompress.img[.text]: File truncated >> Makefile:41738: recipe for target 'xz_decompress.img' failed >> make[5]: *** [xz_decompress.img] Error 1 >> >> Any idea what's going on here? Let me know if I need to provide more >> information. >> > > > Looks similar to > http://www.linux-mips.org/archives/linux-mips/2006-06/msg00028.html. To be more precise - Makefile is using -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR) with TARGET_DECOMPRESSOR_LINK_ADDR=3D0x88100000 for MIPS. It may need to explicitly specify start address for other sections as well, somewhere near 0x88100000.