decrease scope of code_size
This commit is contained in:
parent
5c8e58b0cb
commit
d2601bb7bc
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,6 @@
|
||||||
|
|
||||||
extern grub_dl_t my_mod;
|
extern grub_dl_t my_mod;
|
||||||
struct grub_relocator *grub_multiboot_relocator = NULL;
|
struct grub_relocator *grub_multiboot_relocator = NULL;
|
||||||
static grub_size_t code_size;
|
|
||||||
grub_uint32_t grub_multiboot_payload_eip;
|
grub_uint32_t grub_multiboot_payload_eip;
|
||||||
|
|
||||||
static grub_err_t
|
static grub_err_t
|
||||||
|
@ -182,6 +181,7 @@ grub_multiboot (int argc, char *argv[])
|
||||||
(header->header_addr - header->load_addr));
|
(header->header_addr - header->load_addr));
|
||||||
int load_size = ((header->load_end_addr == 0) ? file->size - offset :
|
int load_size = ((header->load_end_addr == 0) ? file->size - offset :
|
||||||
header->load_end_addr - header->load_addr);
|
header->load_end_addr - header->load_addr);
|
||||||
|
grub_size_t code_size;
|
||||||
void *source;
|
void *source;
|
||||||
|
|
||||||
if (header->bss_end_addr)
|
if (header->bss_end_addr)
|
||||||
|
|
Loading…
Reference in a new issue