Hi guys,

I have an embedded OS that wants to live at the top of system memory. Normally, a shell is app is loaded in the middle of system memory.

Is there a Protocol function to load a shell app to a new address? Or, is there a way in the PE/COFF file format to signal the loader that the appliation wants to load to the top of memory?

        
My current idea is to use the EFI_LOADED_IMAGE_PROTOCOL to get the ImageBase of the running shell application. Then, I will allocate an upper memory area and copy the PE/COFF image to it. Lastly, I will use something like PeCoffLoaderRelocateImageForRuntime() to update the relocations. However, I'm worried that PeCoffLoaderRelocateImageForRuntime() won't work with an image that has already been relocated.

        Is there a better way to do this?


Thanks,

Stephen


_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to