- implemented the unexpanded relocations output.
 - modified the expanded output format to align.
 
Details
- Reviewers
 jhenderson shchenz qiucf Higuoxing - Group Reviewers
 Restricted Project - Commits
 - rG9b6f264d2b09: [XCOFF][llvm-readobj] improve the relocation output.
 
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
| llvm/tools/llvm-readobj/XCOFFDumper.cpp | ||
|---|---|---|
| 151 | Unexpanded relocation entries should have 4 fields: vaddr/symndx(SymbolName)/rsize/rtype. Expanded relocation entries should have 6fields: vaddr/symndx(SymbolName)/sign/fixup/len/type. Maybe we should also contain rsize(which contains info for sign/fixup/len) in the unexpanded relocation info?  | |
| llvm/test/tools/llvm-readobj/XCOFF/relocations.test | ||
|---|---|---|
| 4–5 | Since you're fixing the indention issue, let's add --strict-whitespace to FileCheck  | |
The relocation info looks good to me. I am going to approve this since @jhenderson now has a minor comment related to the test checks.
Since you're fixing the indention issue, let's add --strict-whitespace to FileCheck