grub2/grub-core/lib/i386
Jan (janneke) Nieuwenhuizen 80948f532d lib/i386/relocator64: Build fixes for i386
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.

To reproduce, update the GRUB source description in your local Guix
archive and run

   ./pre-inst-env guix build --system=i686-linux --target=i586-pc-gnu grub

or install an x86 cross-build environment on x86-linux (32-bit!) and
configure to cross build and make, e.g., do something like

    ./configure \
       CC_FOR_BUILD=gcc \
       --build=i686-unknown-linux-gnu \
       --host=i586-pc-gnu
    make

Additionally, remove a line with redundant spaces.

Signed-off-by: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2021-06-01 17:20:20 +02:00
..
pc Add const keyword to grub_env_get and gettextize week days. 2011-11-11 20:34:37 +01:00
xen xen: Fix wrong register in relocator. 2017-03-05 10:07:36 +01:00
backtrace.c backtrace: Fix register call syntax 2015-12-31 14:54:48 +01:00
halt.c asm: Replace "__asm__ __volatile__" with "asm volatile" 2019-03-12 20:04:07 +01:00
random.c Add RNG module. 2016-02-12 12:39:38 +01:00
reboot_trampoline.S * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out. 2011-10-23 23:04:57 +02:00
reboot.c i386: Don't include lib/i386/reset.c in EFI builds 2018-07-25 14:18:11 +02:00
relocator16.S freedos: Fix FreeDOS command booting large files (near or above 64 KiB) 2020-01-28 21:16:48 +01:00
relocator32.S Zero %ebp and %edi when entering Linux's 32-bit entry point, as 2010-09-02 22:36:09 +01:00
relocator64.S lib/i386/relocator64: Build fixes for i386 2021-06-01 17:20:20 +02:00
relocator_asm.S Merge mainline into newreloc. For now without boot tests 2010-08-25 03:25:18 +02:00
relocator_common_c.c Add new ports: i386-xen and x86_64-xen. This allows running GRUB in 2013-11-09 21:29:11 +01:00
relocator_common.S i386/relocator_common: Drop empty #ifdef 2020-09-11 15:46:36 +02:00
relocator.c relocator: Protect grub_relocator_alloc_chunk_align() max_addr against integer underflow 2020-07-29 16:55:48 +02:00
setjmp.S * include/grub/dl.h: Switch from APPLE_CC to __APPLE__. 2012-02-29 14:51:09 +01:00