[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mips-arc build failure on xz_decompress.img
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: mips-arc build failure on xz_decompress.img |
Date: |
Sun, 21 Sep 2014 17:52:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 |
On 26.08.2014 10:23, Andrei Borzenkov wrote:
> On Tue, Aug 26, 2014 at 8:52 AM, Andrei Borzenkov <address@hidden> wrote:
>> On Tue, Aug 26, 2014 at 2:29 AM, Colin Watson <address@hidden> 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=grub.git;a=commitdiff;h=1de3a48098053aaebd35232bd73e3ce3f3fdf51c.
>>> Following that, I get:
>>>
>>> if test x0 = x1; then ../grub-macho2img xz_decompress.image
>>> xz_decompress.img; else objcopy -O binary --strip-unneeded -R .note -R
>>> .comment -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 offset
>>> 0x87cfff48.
>>> BFD: Warning: Writing section `.rodata' to huge (ie negative) file offset
>>> 0x87d027b8.
>>> BFD: Warning: Writing section `.data.rel.ro' to huge (ie negative) file
>>> offset 0x87d02834.
>>> BFD: Warning: Writing section `.data' to huge (ie negative) file offset
>>> 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=0x88100000 for MIPS. It may need to
> explicitly specify start address for other sections as well, somewhere
> near 0x88100000.
>
@Colin: do you have intermediate files? We should probably strip those
extra sections.
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
signature.asc
Description: OpenPGP digital signature
- Re: mips-arc build failure on xz_decompress.img,
Vladimir 'φ-coder/phcoder' Serbinenko <=