+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>
* configure.ac: Fix a typo in previous commit.
align) - image_target->vaddr_offset;
grub_util_info ("locating the section %s at 0x%llx",
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;
current_address += grub_host_to_target_addr (s->sh_size);
}
grub_util_info ("locating the section %s at 0x%llx",
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;
current_address += grub_host_to_target_addr (s->sh_size);
}
grub_util_info ("locating the section %s at 0x%llx",
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
+ image_target->vaddr_offset;
current_address += grub_host_to_target_addr (s->sh_size);