llvm-project/llvm/test/tools/llvm-objdump
Namhyung Kim 69b312cde4 [llvm-objdump] Create fake sections for a ELF core file
The linux perf tools use /proc/kcore for disassembly kernel functions.
Actually it copies the relevant parts to a temp file and then pass it to
objdump. But it doesn't have section headers so llvm-objdump cannot
handle it.

Let's create fake section headers for the program headers. It'd have a
single section for each segment to cover the entire range. And for this
purpose we can consider only executable code segments.

With this change, I can see the following command shows proper outputs.

perf annotate --stdio --objdump=/path/to/llvm-objdump

Differential Revision: https://reviews.llvm.org/D128705
2022-07-14 13:39:59 +01:00
..
AMDGPU
COFF [Object][COFF] Fix section name parsing error when the name field is not null-padded 2022-06-09 12:58:28 -07:00
ELF [llvm-objdump] -r: print non-SHF_ALLOC relocations for non-ET_REL files 2022-07-01 09:08:42 -07:00
Inputs
MachO [FileCheck] Catch missspelled directives. 2022-05-26 11:37:19 +01:00
Offloading [llvm-objdump] Fix alignment issues when dumping offloading sections 2022-07-08 14:30:06 -04:00
X86 [llvm-objdump] Create fake sections for a ELF core file 2022-07-14 13:39:59 +01:00
XCOFF [XCOFF] write the real source file name in C_FILE symbol. 2022-06-22 06:23:36 -04:00
wasm [WebAssembly][Object] Remove requirement that objects must have code sections 2022-06-23 13:56:17 -07:00
all-headers.test
archive-headers.test
dwarf_invalid.yaml
eh_frame-mipsel.test
eh_frame_zero_cie.test
embedded-source.test
file-headers-pe.test
full-contents.test
help.test
invalid-input.test
invalid-symbol-table-size.test
malformed-archives.test [AIX] Support of Big archive (read) 2022-01-18 12:13:01 -05:00
mattr-mcpu-help.test
non-archive-object.test
openbsd-headers.test
option-grouping.test
private-headers-dynamic-section.test
private-headers-no-dynamic-segment.test
private-headers-no-dynamic.test
relocation-xindex-symbol.test
section-filter.test
section-headers.test
tool-name.test
unimplemented-features.test
verneed-wrong-info.test
version.test
warn-missing-section.test
warn-on-out-of-range-start-stop-address.test