grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] grub-core: Build fixes for i386


From: Daniel Kiper
Subject: Re: [PATCH v2] grub-core: Build fixes for i386
Date: Thu, 27 May 2021 16:27:42 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, May 26, 2021 at 08:18:11PM +0200, Jan Nieuwenhuizen wrote:
> Daniel Kiper writes:

[...]

> >> * grub-core/lib/i386/relocator64.S: Avoid x86_64 instructions on i386.
> >
> > Hmmm... What is this?
>
> The "gitlog-to-changelog" scripts needs entries like this in order to
> generate a GNU-compliant ChangeLog, see Emacs, LilyPond, Guile, Guix,
> etc.  GRUB is the first GNU project that I encounter that has a
> different take on this; sorry for missing that!

Oh, I did not know about that. I have to take a look at it.

> I have changed it to
>
> --8<---------------cut here---------------start------------->8---
> This fixes cross-compiling to x86 (e.g., the Hurd) from x86-linux of
>
>     grub-core/lib/i386/relocator64.S
>
> This file has six sections that only build with a 64-bit assembler,
> yet only the first two sections had support for a 32-bit assembler;
> this patch completes this for the remaining sections.
> --8<---------------cut here---------------end--------------->8---
>
> > And you should add your SOB at the end of commit message:
> >
> > Signed-off-by: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
>
> Done.
>
> And sorry; you asked that before.  I failed to do so because I only ever
> encountered this use (e.g., quoting the Guix manual)
>
>        When pushing a commit on behalf of somebody else, please add a
>     ‘Signed-off-by’ line at the end of the commit log message—e.g., with
>     ‘git am --signoff’.  This improves tracking of who did what.
>
> and as I am the author, that would be redundant.

No worries...

> >> +#ifdef    __x86_64__
> >>    movq    %rax, %rsi
> >> -
> >
> > This and...
> >
> >> +#else
> >> +  /* movq %rax, %rsi */
> >> +  .byte   0x48
> >> +  .byte   0x89
> >> +  .byte   0xc6
> >> +#endif
> >> +
> >
> > ... this change look strange. Could you fix it? Or explain in the
> > commit message you are doing a cleanup by the way...
>
> Hmm...what is it that looks strange here?  Obviously the MOV %RAX..
> statement must be guarded and get a 32-bit alternative, and the empty
> line after the move instruction now moves to the end of the block?

Err... Sorry, I was imprecise. I was thinking about removal and addition
of empty lines. No entirely empty but... Anyway, I will fix it...

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]