diff options
| author | 2026-10-13 10:21:46 -0700 | |
|---|---|---|
| committer | 2026-10-14 18:31:57 -0300 | |
| commit | 17f857eb98b7eff5b2bae9d026853725d7329c17 (patch) | |
| tree | 36c4af04920566f24a068dbb44d0090f52b4ec55 /scripts/Makefile.thinlto | |
| parent | perf tools: Remove redundant dso data init (diff) | |
perf tools: Check ELF section type with name
In filename__has_section(), it just checks the name of the section but
it's possible that the section header is present without actual data.
In that case, it'll have SHT_NOBITS type and can confuse the result.
Update the function to check the section type as well. Normally we
want to check if the section content is present in the file so it'd
have SHT_PROGBITS. All the current callers of the function expect
the section with SHT_PROGBITS type (even for debug info).
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
