forked from tsoome/grub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
* configure.ac: Remove -m64 from checks for -mcmodel=large and -mno-red-zone. These are always either unnecessary (x86_64-emu) or already in TARGET_CFLAGS at this point, and they produce incorrect results when building for x32. * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast pointers to Elf64_Xword via grub_addr_t, in order to work on x32. * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P, GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
- Loading branch information
Showing
4 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
2014-09-07 Colin Watson <[email protected]> | ||
|
||
Support grub-emu on x32 (ILP32 but with x86-64 instruction set) | ||
|
||
* configure.ac: Remove -m64 from checks for -mcmodel=large and | ||
-mno-red-zone. These are always either unnecessary (x86_64-emu) or | ||
already in TARGET_CFLAGS at this point, and they produce incorrect | ||
results when building for x32. | ||
* grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast | ||
pointers to Elf64_Xword via grub_addr_t, in order to work on x32. | ||
* include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P, | ||
GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32. | ||
|
||
2014-09-07 Colin Watson <[email protected]> | ||
|
||
* configure.ac: Remove several unnecessary semicolons. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters