GRUB no longer builds on sparc64 after recent binutils changes
(too old to reply)
John Paul Adrian Glaubitz
2018-08-07 10:24:37 UTC

binutils upstream recently dropped support for a.out and COFF on sparc [1]
which now causes GRUB failing to build on sparc64-linux [2]:

if test x0 = x1; then ../grub-macho2img diskboot.image diskboot.img; else objcopy -O binary --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .MIPS.abiflags -R .reginfo -R .rel.dyn -R .note.gnu.gold-version -R .ARM.exidx diskboot.image diskboot.img; fi
objcopy:boot.img: invalid bfd target
make[5]: *** [Makefile:42941: boot.img] Error 1
make[5]: *** Waiting for unfinished jobs....
objcopy:cdboot.img: invalid bfd target
make[5]: *** [Makefile:42950: cdboot.img] Error 1

Does anyone know how we can resolve this issue? Can SPARC's OpenFirmware
handle ELF files?

Aren't COFF or a.out binaries often required by firmware loaders or similar?

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=c9098af41e3246586a30f4f0bdb0ee4367e9a5e7#patch1
[2] https://buildd.debian.org/status/fetch.php?pkg=grub2&arch=sparc64&ver=2.02%2Bdfsg1-5&stamp=1533001924&raw=0
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Continue reading on narkive: