[PATCH] D65240: [XCOFF][AIX] Generate symbol table entries with llvm-readobj

Jason Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 13:00:42 PDT 2019


jasonliu created this revision.
jasonliu added reviewers: hubert.reinterpretcast, sfertile.
jasonliu added a project: LLVM.
Herald added subscribers: llvm-commits, rupprecht, hiraditya.
jasonliu edited the summary of this revision.

This patch implements main entry and auxiliary entries of symbol table generation for llvm-readobj on AIX.
The source code of aix_xcoff_xlc_test8.o (compile with xlc) is:

  -bash-4.2$ cat test8.c
  extern int i;
  extern int TestforXcoff;
  extern int fun(int i);
  static int static_i;
  char* p="abcd";
  int fun1(int j) {
    static_i++;
    j++;
    j=j+*p;
    return j;
  }
  int main() {
    i++;
    fun(i);
    return fun1(i);
  }


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65240

Files:
  llvm/include/llvm/BinaryFormat/XCOFF.h
  llvm/include/llvm/Object/XCOFFObjectFile.h
  llvm/lib/Object/XCOFFObjectFile.cpp
  llvm/test/tools/llvm-readobj/Inputs/aix_xcoff_xlc_test8.o
  llvm/test/tools/llvm-readobj/xcoff-symbols.test
  llvm/tools/llvm-readobj/XCOFFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65240.211590.patch
Type: text/x-patch
Size: 37967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190724/dddeaf8a/attachment.bin>


More information about the llvm-commits mailing list