]> git.itanic.dy.fi Git - linux-stable/commit
perf jit: Include program header in ELF files
authorLieven Hey <lieven.hey@kdab.com>
Thu, 15 Sep 2022 09:29:10 +0000 (11:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:04:07 +0000 (11:04 +0200)
commit80b2f37b3370c505b03544b5efc895514f673cf3
treee97b7dddb9e2051238dafdf2b57cbe575ca9e6cc
parent95c5637d3d1fbc100397b27478172a8549f97b2b
perf jit: Include program header in ELF files

[ Upstream commit babd04386b1df8c364cdaa39ac0e54349502e1e5 ]

The missing header makes it hard for programs like elfutils to open
these files.

Fixes: 2d86612aacb7805f ("perf symbol: Correct address for bss symbols")
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Lieven Hey <lieven.hey@kdab.com>
Tested-by: Leo Yan <leo.yan@linaro.org>
Cc: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20220915092910.711036-1-lieven.hey@kdab.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/genelf.c
tools/perf/util/genelf.h