[XCOFF] Decode the relocation entries of loader section of xcoff for llvm-readobj
authorzhijian <zhijian@ca.ibm.com>
Wed, 14 Dec 2022 16:16:20 +0000 (11:16 -0500)
committerzhijian <zhijian@ca.ibm.com>
Wed, 14 Dec 2022 16:16:20 +0000 (11:16 -0500)
commita274d62fecfc3f49065f3fcdcb9577637778e0bc
tree1bf38489f7675ffcbc82c8f27831507de8c78134
parent07335f9460ffa3a2be7f06b33a9f013de379f6a9
[XCOFF] Decode the relocation entries of loader section of xcoff for llvm-readobj

Summary:

support decoding the relocation entries of loader section of xcoff for llvm-readobj

https://www.ibm.com/docs/en/aix/7.2?topic=formats-xcoff-object-file-format#XCOFF__vra3i31ejbau

Reviewers: James Henderson, Esme Yi
Differential Revision: https://reviews.llvm.org/D136787
llvm/docs/CommandGuide/llvm-readobj.rst
llvm/include/llvm/BinaryFormat/XCOFF.h
llvm/include/llvm/Object/XCOFFObjectFile.h
llvm/test/tools/llvm-readobj/XCOFF/loader-section-relocation-invalid-sym-name.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/XCOFF/loader-section-relocation.test [new file with mode: 0644]
llvm/tools/llvm-readobj/ObjDumper.h
llvm/tools/llvm-readobj/Opts.td
llvm/tools/llvm-readobj/XCOFFDumper.cpp
llvm/tools/llvm-readobj/llvm-readobj.cpp