On Thu, Feb 20, 2020 at 06:32:39PM +0100, Ard Biesheuvel wrote: > Another thing I wondered was whether we really need the .reloc > section. We don't have one on ARM, and it works fine with the existing > EDK2 loader. > Peter: any idea whether the issue with .reloc you pointed out to me > the other day still exists in EDK2 today? commit 743628e868c5 ("x86, efi stub: Add .reloc section back into image") says that Some UEFI firmware will not load a .efi with a .reloc section with a size of 0. Is that the issue you're refering to? It is a bit odd, since we actually leave base relocation table at a size of zero with an RVA of zero, so it shouldn't even look at the .reloc section according to the spec. At least current EKD2 code doesn't seem to -- I think it would even work if you specify fewer tables than 6 so that the base relocation table is missing altogether.