]> code.ossystems Code Review - openembedded-core.git/commit
binutils: reproducibility: reuse debug-prefix-map for stabs
authorDenys Zagorui <dzagorui@cisco.com>
Wed, 11 Nov 2020 11:03:10 +0000 (11:03 +0000)
committerSteve Sakoman <steve@sakoman.com>
Thu, 12 Nov 2020 14:06:13 +0000 (04:06 -1000)
commitb90799fd0f38cd013bebadbe5b9c50b4f93e84af
tree9bbdb39f06fa535a007eeb859e04a92fb500f4f6
parentaca4b863c2878b31c3cb506b05d1e19ef525e4af
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: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/binutils/binutils-2.34.inc
meta/recipes-devtools/binutils/binutils/0001-gas-improve-reproducibility-for-stabs-debugging-data.patch [new file with mode: 0644]