Fix ia64-efi image generation on big-endian machines. Deduplicate
some code while on it. Reported by: Leif Lindholm.
This commit is contained in:
parent
18866643f7
commit
d5e2a158e1
6 changed files with 243 additions and 286 deletions
|
@ -40,6 +40,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <grub/efi/pe32.h>
|
||||
#include <grub/ia64/reloc.h>
|
||||
|
||||
#define _GNU_SOURCE 1
|
||||
#include <argp.h>
|
||||
|
@ -1201,10 +1202,10 @@ generate_image (const char *dir, const char *prefix,
|
|||
o->subsystem = grub_host_to_target16 (GRUB_PE32_SUBSYSTEM_EFI_APPLICATION);
|
||||
|
||||
/* Do these really matter? */
|
||||
o->stack_reserve_size = grub_host_to_target32 (0x10000);
|
||||
o->stack_commit_size = grub_host_to_target32 (0x10000);
|
||||
o->heap_reserve_size = grub_host_to_target32 (0x10000);
|
||||
o->heap_commit_size = grub_host_to_target32 (0x10000);
|
||||
o->stack_reserve_size = grub_host_to_target64 (0x10000);
|
||||
o->stack_commit_size = grub_host_to_target64 (0x10000);
|
||||
o->heap_reserve_size = grub_host_to_target64 (0x10000);
|
||||
o->heap_commit_size = grub_host_to_target64 (0x10000);
|
||||
|
||||
o->num_data_directories
|
||||
= grub_host_to_target32 (GRUB_PE32_NUM_DATA_DIRECTORIES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue