1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-17 07:52:46 +02:00
Files
u-boot-megous/include
AKASHI Takahiro 8458bf648f efi_loader: set image_base and image_size to correct values
Currently, image's image_base points to an address where the image was
temporarily uploaded for further loading. Since efi_loader relocates
the image to final destination, image_base and image_size should reflect
that.

This bug was detected in UEFI SCT, "Loaded Image Protocol Test - test 2,"
which shows that 'Unload' function doesn't fit into a range suggested by
image_base and image_size.

	TestCase/UEFI/EFI/Protocol/LoadedImage/BlackBoxTest/
	LoadedImageBBTestMain.c:1002

Changes in this patch also includes:
* reverts a patch, "efi_loader: save image relocation address
  and size" since newly added fields are no longer needed.
* copy PE headers as well since those information will be needed
  for module loading, in particular, at gurb.
  (This bug was reported by Heinrich.)

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>

Rebase patch.
Remove unused fields from struct efi_loaded_image_obj.

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2019-04-07 14:17:06 +02:00
..
2019-02-19 16:58:24 -05:00
2019-02-13 09:40:05 +01:00
2019-02-20 15:27:09 +08:00
2019-02-09 12:50:22 -07:00
2019-01-01 14:12:18 +01:00
2019-01-01 14:12:18 +01:00
2019-02-09 07:50:58 -05:00
2019-02-02 08:19:17 -05:00
2019-01-24 11:35:30 -06:00
2019-01-18 22:19:09 +05:30
2019-02-01 16:59:12 +01:00