On Tue, Aug 26, 2014 at 8:52 AM, Andrei Borzenkov <arvidj...@gmail.com> wrote: > On Tue, Aug 26, 2014 at 2:29 AM, Colin Watson <cjwat...@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. _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel