]> code.ossystems Code Review - openembedded-core.git/commit
binutils: reproducibility: reuse debug-prefix-map for stabs
authorDenys Zagorui <dzagorui@cisco.com>
Tue, 10 Nov 2020 18:14:12 +0000 (18:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Nov 2020 10:08:07 +0000 (10:08 +0000)
commit4dce4e01cfa153fb12cfd1684d36e0432bef6741
tree5fe918725e48a9f7101999d08ff9c2a9c0ee1fb5
parent2bcc643195a3b3c66d698fac8b7af037c08545ac
binutils: reproducibility: reuse debug-prefix-map for stabs

powerpc 32bit Linux Kernel widely uses .stabs pseudo-op to
produce debugging information in stabs format. Faced an issue
that during Linux Kernel build with Yocto build system for 32bit
powerpc platform resulting vmlinux contains absolute path in
.stabstr section that cannot be remapped with -fdebug-prefix-map
option.

Yocto uses scripts/mkmakefile Linux Kernel build approach that
allows to store all generated files outside of kernel source
tree. With this approach each compilier invocation is performed
with an absolute path to a file that will be compiled and this
absolute path is recorded in init stab. There is no way to remap
this path.

Reuse remap_debug_filename api to make -fdebug-prefix-map flag
aplicable for init stab.

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils-2.35.inc
meta/recipes-devtools/binutils/binutils/0017-gas-improve-reproducibility-for-stabs-debugging-data.patch [new file with mode: 0644]