edk2 icon indicating copy to clipboard operation
edk2 copied to clipboard

Pass ${DEBUG_PREFIX_MAP} to gcc commands

Open kanavin opened this issue 4 years ago • 1 comments

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]

kanavin avatar Nov 12 '21 08:11 kanavin

PR can not be merged due to conflict. Please rebase and resubmit

mergify[bot] avatar Jun 08 '22 11:06 mergify[bot]

PR can not be merged due to conflict. Please rebase and resubmit

mergify[bot] avatar Dec 22 '22 01:12 mergify[bot]

I'm not sure why this was closed without a comment, but I have reopened here: https://github.com/tianocore/edk2/pull/3870

kanavin avatar Jan 09 '23 11:01 kanavin