]> 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)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Sep 2022 13:30:55 +0000 (10:30 -0300)
commitbabd04386b1df8c364cdaa39ac0e54349502e1e5
tree3f7b902bf91f71ee36a59692e9d73e4f6b1a83ec
parent7901086014bbaa3aeabcf060e0bbad6220427a3b
perf jit: Include program header in ELF files

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>
tools/perf/util/genelf.c
tools/perf/util/genelf.h