Re: Recent removal of a.out and COFF support for sparc

2018-08-07 Thread Alan Modra
On Tue, Aug 07, 2018 at 05:56:58PM +0200, John Paul Adrian Glaubitz wrote: > On 08/07/2018 12:51 PM, John Paul Adrian Glaubitz wrote: > > binutils/bfd recently removed a.out and COFF support for sparc [1]. > I just noticed that COFF/a.out support for MIPS was removed as well > and shortly after res

Questions about grub_video_set_mode()

2018-08-07 Thread Dexuan Cui
Hi, I'm debugging a strange grub2 issue in a Linux Virtual Machine running on Hyper-V. I have used the latest grub code from https://git.savannah.gnu.org/git/grub.git: commit c79ebcd18cf3e208e9dda5e2ae008f76c92fe451 Date: Mon Jul 9 19:49:06 2018 +0100 i386: Don't include lib/i386/reset.c in EF

Re: Recent removal of a.out and COFF support for sparc

2018-08-07 Thread John Paul Adrian Glaubitz
On 08/07/2018 12:51 PM, John Paul Adrian Glaubitz wrote: > binutils/bfd recently removed a.out and COFF support for sparc [1]. I just noticed that COFF/a.out support for MIPS was removed as well and shortly after restored since it seems that GRUB also needs COFF/a.out support on MIPS. So, can we h

Re: Recent removal of a.out and COFF support for sparc

2018-08-07 Thread John Paul Adrian Glaubitz
On 08/07/2018 05:04 PM, Vladimir 'phcoder' Serbinenko wrote: > I can change code to do conversion to coff ourselves. Shouldn't that be a.out? And we would still have the problem that other binaries for OBP can no longer be generated using binutils. Adrian -- .''`. John Paul Adrian Glaubitz :

Re: Recent removal of a.out and COFF support for sparc

2018-08-07 Thread Vladimir 'phcoder' Serbinenko
I can change code to do conversion to coff ourselves. вт, 7 авг. 2018 г., 12:56 John Paul Adrian Glaubitz < glaub...@physik.fu-berlin.de>: > Hello! > > binutils/bfd recently removed a.out and COFF support for sparc [1]. > > Unfortunately, this means that we are no longer able to built GRUB > or S

Re: Recent removal of a.out and COFF support for sparc

2018-08-07 Thread Gunther Nikl
John Paul Adrian Glaubitz wrote: > I would therefore like to ask to start a discussion about a potential > reversal of this commit as I don't think we can forgo being able to > build a bootloader on sparc/sparc64. > Also, since m68k is still very actively maintained (there is even > LLVM support

Recent removal of a.out and COFF support for sparc

2018-08-07 Thread John Paul Adrian Glaubitz
Hello! binutils/bfd recently removed a.out and COFF support for sparc [1]. Unfortunately, this means that we are no longer able to built GRUB or SILO for sparc/sparc64 which need to be built as a.out binaries as the Open Boot Firmware requires them to be in a.out format [2]. I would therefore li

GRUB no longer builds on sparc64 after recent binutils changes

2018-08-07 Thread John Paul Adrian Glaubitz
Hi! 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-i

[PATCH] linux16 module: code cleanup

2018-08-07 Thread Cao jin
1. move relocator related code more close to each other 2. use variable "len" since it has correct assignment, and keep coding style with upper code Signed-off-by: Cao jin --- grub-core/loader/i386/pc/linux.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/grub-co