[syslinux] Question about syslinux EFI alpha version

H. Peter Anvin hpa at zytor.com
Wed May 8 11:13:37 PDT 2013


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.

	-hpa



More information about the Syslinux mailing list