[syslinux] Question about syslinux EFI alpha version

Matt Fleming matt at console-pimps.org
Thu May 9 04:34:20 PDT 2013


On 05/08/2013 07:13 PM, H. Peter Anvin wrote:
> On 05/08/2013 05:28 AM, Matt Fleming wrote:
>> On Tue, 07 May, at 01:05:22PM, Klaus Knopper wrote:
>>> $ file elilo.efi syslinux.efi syslinux.so
>>> elilo.efi:    PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
>>> syslinux.efi: MS-DOS executable
>>> syslinux.so:  ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
>>>
>>> The output for syslinux.efi just looks wrong.
>>  
>> In case anyone is curious why file(1) claims that syslinux.efi is an
>> MS-DOS executable, it's because file(1) checks whether the value of the
>> relocs pointer field in the MS-DOS header is >= 0x40, and in the case of
>> syslinux.efi the field is 0x00.
>>
> 
> The relocs pointer is also the size of the MS-DOS header, so this is a
> real bug which should be fixed.

Do you know whether that is documented anywhere? I'm having trouble
finding a source to corroborate that.

-- 
Matt Fleming, Intel Open Source Technology Center


More information about the Syslinux mailing list