Question
I am trying to create a multi-DXE Loader file in CrossCore embedded Studio, using a relative file system path to include additional DXE(s). Using the relative path from the location of the .project and .cproject files does not work, and generates the error:
[Error ld0095]: Unable to open file: DualCoreLDR_Core1.dxe.
make: *** [DualCoreLDR_Core0.ldr] Error -1
What is the current working directory when the Loader is invoked, so that I can use a relative path to the 2nd DXE?
================================
Answer
When the elfloader is invoked, the current working directory is the location of the DXE file produced from building the project, so any relative path should be relative to the output directory of the project being built (for example, the defaults of “.\Debug” and “.\Release”).