Load DXE file in to memory

The dxeload unit was implemented by Pierre M\"uller for dos, it allows to load a DXE file (an object file with 1 entry point) into memory and return a pointer to the entry point.

It exists only for dos.

Magic number, found in the header of a DXE file.> Record with header of DXE file The dxe_header record describes the header of a DXE file. It is used to determine the magic number of the DXE file and number of relocations that must be done when the object file is loaded in memory. Load DXE file in memory

dxe_load loads the contents of the file filename into memory. It performs the necessary relocations in the object code, and returns then a pointer to the entry point of the code.

For an example, see the emu387 unit in the RTL.

If an error occurs during the load or relocations, Nil is returned.