[PATCH] D131290: [llvm-objdump] Create name for fake sections
Namhyung Kim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 9 14:22:59 PDT 2022
namhyung added a comment.
Not sure what happened with the input data. But at least it worked with my test case and linux perf kcore image.
$ bin/yaml2obj ../llvm/test/tools/llvm-objdump/X86/disassemble-no-section.test -o nosec.elf
$ objdump -h nosec.elf
nosec.elf: file format elf64-x86-64
Sections:
Idx Name Size VMA LMA File off Algn
0 load0 0000000a ffffffff00000000 ffffffff00000000 00001000 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
$ objdump -d nosec.elf
nosec.elf: file format elf64-x86-64
Disassembly of section load0:
ffffffff00000000 <load0>:
ffffffff00000000: 55 push %rbp
ffffffff00000001: 48 89 e5 mov %rsp,%rbp
ffffffff00000004: 0f 1f 40 00 nopl 0x0(%rax)
ffffffff00000008: 5d pop %rbp
ffffffff00000009: c3 ret
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131290/new/
https://reviews.llvm.org/D131290
More information about the llvm-commits
mailing list