]> granicus.if.org Git - llvm/commit
[XCOFF] Implement parsing symbol table for xcoffobjfile and output as yaml format
authorJason Liu <jasonliu.development@gmail.com>
Tue, 28 May 2019 14:37:59 +0000 (14:37 +0000)
committerJason Liu <jasonliu.development@gmail.com>
Tue, 28 May 2019 14:37:59 +0000 (14:37 +0000)
commit76ee591e560f2d9db7ba35c4a2f13d74fefd2e2e
tree6d84792bd16ecfd20a5d3c4e546874f16ba5db85
parent64fe333f1edb99f899ac98914f25b2b460d18715
[XCOFF] Implement parsing symbol table for xcoffobjfile and output as yaml format

Summary:
This patch implement parsing symbol table for xcoffobjfile and
output as yaml format. Parsing auxiliary entries of a symbol
will be in a separate patch.

The XCOFF object file (aix_xcoff.o) used in the test comes from
-bash-4.2$ cat test.c
extern int i;
extern int TestforXcoff;
int main()
{
i++;
TestforXcoff--;
}

Patch by DiggerLin

Reviewers: sfertile, hubert.reinterpretcast, MaskRay, daltenty

Differential Revision: https://reviews.llvm.org/D61532

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361832 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryFormat/XCOFF.h
include/llvm/Object/XCOFFObjectFile.h
include/llvm/ObjectYAML/XCOFFYAML.h
lib/Object/XCOFFObjectFile.cpp
lib/ObjectYAML/XCOFFYAML.cpp
test/tools/obj2yaml/Inputs/aix_xcoff.o
test/tools/obj2yaml/aix_xcoff.test
tools/llvm-readobj/XCOFFDumper.cpp
tools/obj2yaml/xcoff2yaml.cpp