* mips-arc build failure on xz_decompress.img
@ 2014-08-25 22:29 Colin Watson
2014-08-26 4:52 ` Andrei Borzenkov
0 siblings, 1 reply; 5+ messages in thread
From: Colin Watson @ 2014-08-25 22:29 UTC (permalink / raw)
To: grub-devel
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.
Thanks,
--
Colin Watson [cjwatson@ubuntu.com]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mips-arc build failure on xz_decompress.img
2014-08-25 22:29 mips-arc build failure on xz_decompress.img Colin Watson
@ 2014-08-26 4:52 ` Andrei Borzenkov
2014-08-26 8:23 ` Andrei Borzenkov
0 siblings, 1 reply; 5+ messages in thread
From: Andrei Borzenkov @ 2014-08-26 4:52 UTC (permalink / raw)
To: The development of GNU GRUB
On Tue, Aug 26, 2014 at 2:29 AM, Colin Watson <cjwatson@ubuntu.com> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mips-arc build failure on xz_decompress.img
2014-08-26 4:52 ` Andrei Borzenkov
@ 2014-08-26 8:23 ` Andrei Borzenkov
2014-09-21 15:52 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 5+ messages in thread
From: Andrei Borzenkov @ 2014-08-26 8:23 UTC (permalink / raw)
To: The development of GNU GRUB
On Tue, Aug 26, 2014 at 8:52 AM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
> On Tue, Aug 26, 2014 at 2:29 AM, Colin Watson <cjwatson@ubuntu.com> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mips-arc build failure on xz_decompress.img
2014-08-26 8:23 ` Andrei Borzenkov
@ 2014-09-21 15:52 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-09-23 15:49 ` Colin Watson
0 siblings, 1 reply; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2014-09-21 15:52 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 2155 bytes --]
On 26.08.2014 10:23, Andrei Borzenkov wrote:
> On Tue, Aug 26, 2014 at 8:52 AM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
>> On Tue, Aug 26, 2014 at 2:29 AM, Colin Watson <cjwatson@ubuntu.com> 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
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mips-arc build failure on xz_decompress.img
2014-09-21 15:52 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2014-09-23 15:49 ` Colin Watson
0 siblings, 0 replies; 5+ messages in thread
From: Colin Watson @ 2014-09-23 15:49 UTC (permalink / raw)
To: grub-devel
On Sun, Sep 21, 2014 at 05:52:50PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> @Colin: do you have intermediate files? We should probably strip those
> extra sections.
Right, I'm seeing the same thing on mipsel now, so it looks like a
change introduced by new binutils. I've attached xz_decompress.image.
"objdump -h" from a build on Debian wheezy looks like this:
obj/grub-yeeloong/grub-core/xz_decompress.image: file format elf32-tradlittlemips
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00002ab0 80100000 80100000 000000b0 2**4
CONTENTS, ALLOC, LOAD, CODE
1 .reginfo 00000018 00400094 00400094 00000094 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_SAME_SIZE
2 .rodata 000000dc 80102ab0 80102ab0 00002b60 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .data 00000010 80102b90 80102b90 00002c40 2**4
CONTENTS, ALLOC, LOAD, DATA
4 .sbss 00000004 80102ba0 80102ba0 00002c50 2**2
ALLOC
5 .bss 00007408 80102bb0 80102bb0 00002c50 2**4
ALLOC
6 .comment 0000001c 00000000 00000000 00002c50 2**0
CONTENTS, READONLY
7 .pdr 000002e0 00000000 00000000 00002c6c 2**2
CONTENTS, READONLY
8 .gnu.attributes 00000010 00000000 00000000 00002f4c 2**0
CONTENTS, READONLY
9 .mdebug.abi32 00000000 00000000 00000000 00002f5c 2**0
CONTENTS, READONLY
And "objdump -h" from a build on Debian jessie looks like this:
obj/grub-yeeloong/grub-core/xz_decompress.image: file format elf32-tradlittlemips
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00002af0 80100000 80100000 000000f0 2**4
CONTENTS, ALLOC, LOAD, CODE
1 .MIPS.abiflags 00000018 004000b8 004000b8 000000b8 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_SAME_SIZE
2 .reginfo 00000018 004000d0 004000d0 000000d0 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_SAME_SIZE
3 .rodata 0000007c 80102af0 80102af0 00002be0 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .data.rel.ro 00000058 80102b6c 80102b6c 00002c5c 2**2
CONTENTS, ALLOC, LOAD, DATA
5 .data 00000010 80102bd0 80102bd0 00002cc0 2**4
CONTENTS, ALLOC, LOAD, DATA
6 .got 00000044 80102be0 80102be0 00002cd0 2**4
CONTENTS, ALLOC, LOAD, DATA
7 .sbss 00000004 80102c24 80102c24 00002d14 2**2
ALLOC
8 .bss 00007408 80102c30 80102c30 00002d14 2**4
ALLOC
9 .comment 0000001d 00000000 00000000 00002d14 2**0
CONTENTS, READONLY
10 .pdr 000002e0 00000000 00000000 00002d34 2**2
CONTENTS, READONLY
11 .gnu.attributes 00000010 00000000 00000000 00003014 2**0
CONTENTS, READONLY
12 .mdebug.abi32 00000000 00000000 00000000 00003024 2**0
CONTENTS, READONLY
"-R .MIPS.abiflags" seems to fix things; does that need to be added
anywhere other than gentpl.py:image?
--
Colin Watson [cjwatson@ubuntu.com]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-09-23 15:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-25 22:29 mips-arc build failure on xz_decompress.img Colin Watson
2014-08-26 4:52 ` Andrei Borzenkov
2014-08-26 8:23 ` Andrei Borzenkov
2014-09-21 15:52 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-09-23 15:49 ` Colin Watson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).