Skip to content

ski-efi fails to load setupldr.efi #29

@Vort

Description

@Vort

When setupldr.efi file from Windows XP 64-Bit Edition Version 2003 (Itanium) is launched with screen bski -noconsole ski-efi setupldr.efi command, only loading setupldr.efi... message appears on screen, suggesting hang inside of ski-efi.
Such hang happens because of incorrect parameter passed into memset function, on this line:

ski/ski-efi/bootloader.c

Lines 231 to 232 in 6984f89

memset((char *)__pa(sec_hdr->virtual_address + image_base) + sec_hdr->raw_data_size, 0,
sec_hdr->virtual_size - sec_hdr->raw_data_size);

However, with such problem fixed by adding if (sec_hdr->virtual_size > sec_hdr->raw_data_size) code before this line, loading still fails, this time with Unknown relocation type message.
There may be more problems with loading of this file, but at least these two should be easy to fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions