]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
libgcc/gcc-runtime: Improve source reference handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jul 2022 11:29:39 +0000 (12:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2022 18:55:32 +0000 (19:55 +0100)
commit309e5d8bb56eb8599d756831f0bd38e6a50cfb05
tree66b940e2cbfa0aef75f2869bc91e8a9fd7f4eae2
parentcbd6144a9769d21371ae0fe04db2adc05f6eed02
libgcc/gcc-runtime: Improve source reference handling

This code was some of the earliest reproducible build work we did. To
correctly handle the encoding of file paths, we used relative build
paths to run configure which resulted in relative build paths in the
binaries.

We now have more modern approaches used elsewhere with the prefix remapping
options. These work best with absolute paths, not relative ones. As such,
drop the relative path mangling and switch to using prefix mapping
exclusively on absolute paths.

This makes the code matc the rest of the system and triggers the correct
code to be added in /usr/src/debug.

We have to include both file-prefix and debug-prefix since the assembler
only looks at debug-prefix.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-runtime.inc
meta/recipes-devtools/gcc/libgcc-common.inc