mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
* util/grub-mkimagexx.c (locate_sections): Support non-standard
ELF section gap. (load_image): Likewise.
This commit is contained in:
1 parent
f04a9a216c
commit
9d742bd431
2 files changed
+16
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* util/grub-mkimagexx.c (locate_sections): Support non-standard
|
||||||
|
ELF section gap.
|
||||||
|
(load_image): Likewise.
|
||||||
|
|
||||||
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* configure.ac: Fix a typo in previous commit.
|
* configure.ac: Fix a typo in previous commit.
|
||||||
|
|||||||
@@ -871,6 +871,9 @@ SUFFIX (locate_sections) (Elf_Shdr *sections, Elf_Half section_entsize,
|
|||||||
align) - image_target->vaddr_offset;
|
align) - image_target->vaddr_offset;
|
||||||
grub_util_info ("locating the section %s at 0x%llx",
|
grub_util_info ("locating the section %s at 0x%llx",
|
||||||
name, (unsigned long long) current_address);
|
name, (unsigned long long) current_address);
|
||||||
|
if (image_target->id != IMAGE_EFI)
|
||||||
|
current_address = grub_host_to_target_addr (s->sh_addr)
|
||||||
|
- image_target->link_addr;
|
||||||
section_addresses[i] = current_address;
|
section_addresses[i] = current_address;
|
||||||
current_address += grub_host_to_target_addr (s->sh_size);
|
current_address += grub_host_to_target_addr (s->sh_size);
|
||||||
}
|
}
|
||||||
@@ -896,6 +899,9 @@ SUFFIX (locate_sections) (Elf_Shdr *sections, Elf_Half section_entsize,
|
|||||||
|
|
||||||
grub_util_info ("locating the section %s at 0x%llx",
|
grub_util_info ("locating the section %s at 0x%llx",
|
||||||
name, (unsigned long long) current_address);
|
name, (unsigned long long) current_address);
|
||||||
|
if (image_target->id != IMAGE_EFI)
|
||||||
|
current_address = grub_host_to_target_addr (s->sh_addr)
|
||||||
|
- image_target->link_addr;
|
||||||
section_addresses[i] = current_address;
|
section_addresses[i] = current_address;
|
||||||
current_address += grub_host_to_target_addr (s->sh_size);
|
current_address += grub_host_to_target_addr (s->sh_size);
|
||||||
}
|
}
|
||||||
@@ -985,6 +991,10 @@ SUFFIX (load_image) (const char *kernel_path, grub_size_t *exec_size,
|
|||||||
|
|
||||||
grub_util_info ("locating the section %s at 0x%llx",
|
grub_util_info ("locating the section %s at 0x%llx",
|
||||||
name, (unsigned long long) current_address);
|
name, (unsigned long long) current_address);
|
||||||
|
if (image_target->id != IMAGE_EFI)
|
||||||
|
current_address = grub_host_to_target_addr (s->sh_addr)
|
||||||
|
- image_target->link_addr;
|
||||||
|
|
||||||
section_vaddresses[i] = current_address
|
section_vaddresses[i] = current_address
|
||||||
+ image_target->vaddr_offset;
|
+ image_target->vaddr_offset;
|
||||||
current_address += grub_host_to_target_addr (s->sh_size);
|
current_address += grub_host_to_target_addr (s->sh_size);
|
||||||
|
|||||||
Reference in new issue
Block a user