]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 17 Nov 2020 03:45:12 +0000 (11:45 +0800)
commitb4b79870d7946e58692adb68d1329955500d3c56
tree4500f22c89216979a2bde8847b40e4a6208a506b
parent54a7e5feee2bec78f8d526b69076fd0e8e50e228
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>
(cherry picked from commit 4dce4e01cfa153fb12cfd1684d36e0432bef6741)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
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]