haiku/src
Daniel Schaefer bc33f9dd87 efi/riscv64: Fix NumberOfRvaAndSizes of PE header
The riscv64 UEFI executable has inconsistent header and therefore cannot
be loaded by the EDK2 implementation of UEFI. Apparently Uboot doesn't
care about this detail but EDK2 validates it.

Specifically NumberOfRvaAndSizes should be the number of data directory
entries. It is set to 6 but there are actually 16.
(All entries below NumberOfRvaAndSizes until section_table)

This was probably a typo 0x6 -> 16 (or 0x10).

This is the check of EDK2:
https://github.com/tianocore/edk2/blob/stable/202011/MdePkg/Library/BasePeCoffLib/BasePeCoff.c#L313-L321

Fixes #16824

Change-Id: I5c0dc080cb1cd191b44e016298656db9edd9ca8d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3761
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-03-02 19:41:53 +00:00
..
add-ons libbnetapi: BUrlRequest now outputs to BDataIO 2021-02-28 20:39:31 +00:00
apps libbnetapi: BUrlRequest now outputs to BDataIO 2021-02-28 20:39:31 +00:00
bin mail_utils/mail: Fix -Wwrite-strings 2021-01-12 16:27:24 +00:00
build kits/package: Break LibsolvSolver add-on out 2020-07-18 18:17:48 +00:00
data ARM64 packageinfo and haikuports 2021-02-07 12:17:21 +00:00
kits PackageKit: fix download logic for remote files 2021-03-02 15:17:58 +00:00
libs compat/freebsd_network: Fix Use of zero-allocated memory 2021-03-02 14:19:54 +00:00
preferences Time: handle EINTR on select() 2021-02-01 19:35:02 +00:00
servers Fix subpixel scanline size for fonts with bitmaps 2021-02-28 11:16:22 +00:00
system efi/riscv64: Fix NumberOfRvaAndSizes of PE header 2021-03-02 19:41:53 +00:00
tests libbnetapi: BUrlRequest now outputs to BDataIO 2021-02-28 20:39:31 +00:00
tools tools/mbrtool: A simple tool to create MBR partitions 2021-01-06 23:40:29 +00:00
Jamfile Interface Guidelines: migrate to docs/, use DocBookCSS. 2015-02-12 17:08:04 -05:00