2008-07-18 Pavel Roskin <proski@gnu.org>
* kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot load foreign architecture modules correctly anyway. Keep support for loading host architecture modules, whether we compile them or not.
This commit is contained in:
parent
8aaedab414
commit
b095e2adbf
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-07-18 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
|
||||||
|
load foreign architecture modules correctly anyway. Keep
|
||||||
|
support for loading host architecture modules, whether we
|
||||||
|
compile them or not.
|
||||||
|
|
||||||
2008-07-17 Pavel Roskin <proski@gnu.org>
|
2008-07-17 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* configure.ac: Use -m32 or -m64 regardless of whether we had to
|
* configure.ac: Use -m32 or -m64 regardless of whether we had to
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <grub/env.h>
|
#include <grub/env.h>
|
||||||
#include <grub/cache.h>
|
#include <grub/cache.h>
|
||||||
|
|
||||||
#if GRUB_TARGET_SIZEOF_VOID_P == 4
|
#if GRUB_CPU_SIZEOF_VOID_P == 4
|
||||||
|
|
||||||
typedef Elf32_Word Elf_Word;
|
typedef Elf32_Word Elf_Word;
|
||||||
typedef Elf32_Addr Elf_Addr;
|
typedef Elf32_Addr Elf_Addr;
|
||||||
|
@ -40,7 +40,7 @@ typedef Elf32_Sym Elf_Sym;
|
||||||
# define ELF_ST_BIND(val) ELF32_ST_BIND (val)
|
# define ELF_ST_BIND(val) ELF32_ST_BIND (val)
|
||||||
# define ELF_ST_TYPE(val) ELF32_ST_TYPE (val)
|
# define ELF_ST_TYPE(val) ELF32_ST_TYPE (val)
|
||||||
|
|
||||||
#elif GRUB_TARGET_SIZEOF_VOID_P == 8
|
#elif GRUB_CPU_SIZEOF_VOID_P == 8
|
||||||
|
|
||||||
typedef Elf64_Word Elf_Word;
|
typedef Elf64_Word Elf_Word;
|
||||||
typedef Elf64_Addr Elf_Addr;
|
typedef Elf64_Addr Elf_Addr;
|
||||||
|
|
Loading…
Reference in a new issue