grub-lakitu: REDHAT: MASTER-SB: Re-work some intricacies of PE loading.

The PE spec is not a well written document, and awesomely every place
where there's an ambiguous way to read something, Windows' bootmgfw.efi
takes a different read than either of them.

(cherry picked from commit ae960ea29fe03a6b38ffa9626c55c0c68bb10c76)
(from master-sb branch of https://github.com/rhboot/grub2)

BUG=b:69569602
TEST=TBD

Change-Id: I43e0a638bb1b8481fa2ccc1ad35ec2c7981c45e2
Reviewed-on: https://chromium-review.googlesource.com/945897
Reviewed-by: Edward Jee <edjee@google.com>
Commit-Queue: Edward Jee <edjee@google.com>
Tested-by: Edward Jee <edjee@google.com>
Trybot-Ready: Edward Jee <edjee@google.com>
2 files changed
tree: 813b1158d3511ef6bbb10201c8f71d263ed70162
  1. COMMIT-QUEUE.ini
  2. README
  3. grub-lakitu/