readelf --section-details displays ch_type/ch_size/ch_addralign for
a SHF_COMPRESSED section. Port the feature. There is a small difference
that readelf doesn't display [<corrupt>] for an empty section while
we do.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
4196 | I'm wondering if we should report this error as a warning. It might help the user know why their section is corrupt, for example. |
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
4196 | The GNU behavior is [<corrupt>]. Do you suggest a separate warning beside the stdout output? That may duplicate the information... |
llvm/tools/llvm-readobj/ELFDumper.cpp | ||
---|---|---|
4196 | Yes, that's what I'm suggesting. For example, we already have in llvm-readelf warnings when the code can't read a section name, but we still print a placeholder for the name (e.g. <no-strings> in https://github.com/llvm/llvm-project/blob/main/llvm/test/tools/llvm-readobj/ELF/sections-no-section-header-string-table.test). |
I'm wondering if we should report this error as a warning. It might help the user know why their section is corrupt, for example.