]> 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:11:52 +0000 (11:11 +0200)
commita3b923f449a3c4c12076b8654de2e8a9b9aa7b90
tree28716d84a19b0049ed7f9a5d20b0a5f494d49aeb
parent39dc6ccdd5af5f67c88d3b1ac11da625f7f10298
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