* grub-core/fs/cbfs.c: Don't probe disks of unknow size.

	Fixes hang on virtualbox.
Fix Changelog
	* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
	safety to avoid triggerring VirtualBox bug.
	* grub-core/kern/disk_common.c: Clump disk size to 1EiB.
	* grub-core/term/at_keyboard.c: Retry probing keyboard if
	scancode setup failed.
Fix typo (gettext_print instead of gettext_printf)
[PATCH 1/7] mkimage: Refactor IMAGE_EFI checks into a function grub_image_needs_reloc.

Signed-off-by: Ian Campbell <address@hidden>
[PATCH 2/7] mkimage: Replace hardcoded 0x400 in R_ARM_ABS32 relocation

In http://lists.gnu.org/archive/html/grub-devel/2013-04/msg00034.html Leif
suggested that this should actually be "SUFFIX (entry_point)" saying:
    _start gets bumped down a bit, so all relative relocations need to follow,
    and then I "un-adjust" for the absolutes. Not too proud of that bit of code.

I think this "bumping down" actually comes from the image type's vaddr_offset
and therefore it is more correct to adjust by this amount.

Signed-off-by: Ian Campbell <address@hidden>
[PATCH 3/7] mkimage: account for space for trampolines earlier

In particular we will want to do this before assigning space for .bss,
otherwise the trampoline will potentially overlap the start of .bss and might
be cleared before it is used.

I'm in two minds about whether this is fixing and actual (perhaps latent) bug
or not. AFAICT none of the existing targets which need trampolines require a
.bss assignment here (e.g. they generate PE images which means the .bss gets
taken care of at load time).

Apart from duplicating the surrounding if statement this is pure code motion.

Signed-off-by: Ian Campbell <address@hidden>
[PATCH 4/7] mkimage: make R_ARM_ABS32 debug output more consistent

The decimal target is not very useful and all the other arm reloc debugging
prints a hex target and offset, so do the same.

Signed-off-by: Ian Campbell <address@hidden>
[PATCH 5/7] mkimage: allow linking at address 0

Running from address 0 is plausible at least in principal. Use the maximum
possible address as a sentinal instead.

Signed-off-by: Ian Campbell <address@hidden>
[PATCH 6/7] mkimage: support images which require full relocation at	mkimage time.

To do so support the specification of a "target_address" (which must be 0 for
image types which do not have this flag) and a new image flag to signal the
need for absolute relocation. If this flag is present then image->link_addr is
the default target.

Account for the target address when relocating.

Fabricate correct addresses for absolute symbols relating to the bss
("__bss_start" and "_end").

This functionality is not yet used by any image type and is connected only to
grub-mkimage ("-T option) and not yet to grub-install.

Signed-off-by: Ian Campbell <address@hidden>
[PATCH 7/7] arm-uboot: support relocation at installation time

Partially link kernel.img and take advantage of the new
PLATFORM_FLAGS_ABS_RELOC support to link the final kernel image for a
particular address.

Signed-off-by: Ian Campbell <address@hidden>