Pass ${DEBUG_PREFIX_MAP} to gcc commands
We want to pass ${DEBUG_PREFIX_MAP} to gcc commands and also pass in --debug-prefix-map to nasm (we carry a patch to nasm for this). The tools definitions file is built by ovmf-native so we need to pass this in at target build time when we know the right values so we use the environment.
By using determininistc file paths during the ovmf build, it removes the opportunitity for gcc/ld to change the output binaries due to path lengths overflowing section sizes and causing small changes in the binary output. Previously we relied on the stripped output being the same which isn't always the case if the size of the debug symbols varies.
Signed-off-by: Richard Purdie [email protected] Signed-off-by: Alexander Kanavin [email protected]
PR can not be merged due to conflict. Please rebase and resubmit
PR can not be merged due to conflict. Please rebase and resubmit
I'm not sure why this was closed without a comment, but I have reopened here: https://github.com/tianocore/edk2/pull/3870