u-boot/arch/riscv
Heinrich Schuchardt 9ef5ccaa71 efi_loader: fix SectionAlignment, FileAlignment
The alignment of sections in the EFI binaries generated by U-Boot is
incorrect.

According to the PE-COFF specification [1] the minimum value for
FileAlignment is 512. If the value of SectionAlignment is
less then the page size, it must equal FileAlignment.

Let's set both values to 512 for the ARM and RISC-V architectures.

[1] https://docs.microsoft.com/en-us/windows/win32/debug/pe-format

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2022-01-15 10:57:22 +01:00
..
cpu riscv: Enable SPI flash env for SiFive Unmatched. 2021-12-02 16:43:56 +08:00
dts riscv: qemu: Split devicetree files for qemu_riscv32/64 2021-12-23 10:24:39 -05:00
include/asm riscv: add #define in asm/io.h for some device drivers 2021-11-08 15:35:55 +08:00
lib efi_loader: fix SectionAlignment, FileAlignment 2022-01-15 10:57:22 +01:00
config.mk kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
Kconfig Prepare v2021.10-rc4 2021-09-16 10:29:40 -04:00
Makefile riscv: add Kconfig entries for the code model 2018-12-18 09:56:26 +08:00