diff options
author | 2024-08-29 10:42:25 -0700 | |
---|---|---|
committer | 2024-09-11 09:58:30 -0700 | |
commit | d4deb82423416e3ace7889816eea630af81fe702 (patch) | |
tree | 64ccb9d07086d240b533b8cb633261ccc712ae88 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | lib/buildid: add single folio-based file reader abstraction (diff) | |
download | linux-rng-d4deb82423416e3ace7889816eea630af81fe702.tar.xz linux-rng-d4deb82423416e3ace7889816eea630af81fe702.zip |
lib/buildid: take into account e_phoff when fetching program headers
Current code assumption is that program (segment) headers are following
ELF header immediately. This is a common case, but is not guaranteed. So
take into account e_phoff field of the ELF header when accessing program
headers.
Reviewed-by: Eduard Zingerman <eddyz87@gmail.com>
Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240829174232.3133883-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions