[PATCH] D82549: [AIX][XCOFF] parsing xcoff object file auxiliary header

Digger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 07:26:27 PDT 2020


DiggerLin created this revision.
DiggerLin added reviewers: jasonliu, hubert.reinterpretcast, jhenderson.
Herald added subscribers: llvm-commits, rupprecht, MaskRay, hiraditya.
Herald added a project: LLVM.

the patch supports parsing the  xcoff object file auxiliary header with llvm-readobj with option "auxiliary-headers"

the object file
llvm/test/tools/llvm-readobj/XCOFF/Inputs/xcoff-32-xlc-exec
llvm/test/tools/llvm-readobj/XCOFF/Inputs/xcoff-32-xlc-obj.o
llvm/test/tools/llvm-readobj/XCOFF/Inputs/xcoff-64-xlc-exec
llvm/test/tools/llvm-readobj/XCOFF/Inputs/xcoff-64-xlc-obj.o

are build from the source code with xlc
struct Point {
double x;
double y;
double z;
};

Point add_points(Point a, Point b) {
Point p;
p.x = a.x + b.x;
p.y = a.y + b.y;
p.z = a.z + b.z;
return p;
}

int main() {
Point a = {1.0, 3.0, 4.0};
Point b = {2.0, 8.0, 5.0};
Point c = add_points(a, b);
return 0;
}


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82549

Files:
  llvm/include/llvm/Object/XCOFFObjectFile.h
  llvm/lib/Object/XCOFFObjectFile.cpp
  llvm/test/tools/llvm-readobj/XCOFF/Inputs/xcoff-32-xlc-exec
  llvm/test/tools/llvm-readobj/XCOFF/Inputs/xcoff-32-xlc-obj.o
  llvm/test/tools/llvm-readobj/XCOFF/Inputs/xcoff-64-xlc-exec
  llvm/test/tools/llvm-readobj/XCOFF/Inputs/xcoff-64-xlc-obj.o
  llvm/test/tools/llvm-readobj/XCOFF/xcoff-auxiliary-header.test
  llvm/tools/llvm-readobj/ObjDumper.h
  llvm/tools/llvm-readobj/XCOFFDumper.cpp
  llvm/tools/llvm-readobj/llvm-readobj.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82549.273345.patch
Type: text/x-patch
Size: 20294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200625/aa80fc9f/attachment-0001.bin>


More information about the llvm-commits mailing list