[syslinux] [PATCH v2 3/4] efi: Useless relocations in PE file

Fleming, Matt matt.fleming at intel.com
Sat Dec 7 02:55:41 PST 2013


On 7 December 2013 05:44, H. Peter Anvin <hpa at zytor.com> wrote:

> On 12/01/2013 02:14 PM, Celelibi wrote:
> > There is no need to have a relocation section that nothing points at.
> > The image is still seen as relocatable as long as the Characteristics of
> > the FileHeader do not say otherwise.
> >
> > Moreover, the field base_relocation_table wasn't initialized properly
> > leading to unpredictable bugs.
> >
> > Signed-off-by: Celelibi <celelibi at gmail.com>
>
> I seem to hear about some UEFI implementations which would fail to boot
> unless there is a relocation section... I believe we had to add one to
> the Linux kernel for that reason.  Matt, does that match your recollection?
>

Yeah, it does. I've tested this patch with OVMF and it works OK, but I'll
need to test it out on my physical machines here.


More information about the Syslinux mailing list