/2014 06:52 AM
Subject:Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to
the Grub ELF Parser
On Fri, Jan 10, 2014 at 11:52:52PM +0400, Andrey Borzenkov wrote:
> В Fri, 10 Jan 2014 11:58:58 -0600
> Tomohiro B Berry пишет:
> > This patch adds bi-endian support for bot
Define the native endianness */
+
+#ifdef GRUB_CPU_WORDS_BIGENDIAN
+#define ELFDATA_NATIVE ELFDATA2MSB
+#else
+#define ELFDATA_NATIVE ELFDATA2LSB
+#endif
/* The ELF file header. This appears at the start of every ELF file. */
From: Andrey Borzenkov
To: The development of GNU
On Tue, Jan 14, 2014 at 1:29 AM, Tomohiro B Berry wrote:
> Hi Colin,
>
> After some testing, it seems that Grub is able to boot the kernel just fine
> with an initrd with only these changes. The initrd is loaded into memory
> while still in BE mode and it looks like the jump is handled in the
> f
AM
Subject:Re: [PATCH] Adding Bi-Endian 32-bit and 64-bit Support to
the Grub ELF Parser
On Fri, Jan 10, 2014 at 11:52:52PM +0400, Andrey Borzenkov wrote:
> В Fri, 10 Jan 2014 11:58:58 -0600
> Tomohiro B Berry пишет:
> > This patch adds bi-endian support for both 32-bit an
On Fri, Jan 10, 2014 at 11:52:52PM +0400, Andrey Borzenkov wrote:
> В Fri, 10 Jan 2014 11:58:58 -0600
> Tomohiro B Berry пишет:
> > This patch adds bi-endian support for both 32-bit and 64-bit elf files.
> >
> > It compares the native endianness to the endianness of the elf file, and
> > swaps
В Fri, 10 Jan 2014 11:58:58 -0600
Tomohiro B Berry пишет:
> This patch adds bi-endian support for both 32-bit and 64-bit elf files.
>
> It compares the native endianness to the endianness of the elf file, and
> swaps the header bytes if necessary. This will allow, for example, 32-bit
> Big E
This patch adds bi-endian support for both 32-bit and 64-bit elf files.
It compares the native endianness to the endianness of the elf file, and
swaps the header bytes if necessary. This will allow, for example, 32-bit
Big Endian grub to load a 64-bit Little Endian kernel.
Regards,
Tomo Berr