[all-commits] [llvm/llvm-project] 5b44c7: [AIX]implement the --syms and using "symbol index ...

diggerlin via All-commits all-commits at lists.llvm.org
Fri Oct 1 09:38:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b44c716ee0ffcb0b8943b9e76eb69473188768a
      https://github.com/llvm/llvm-project/commit/5b44c716ee0ffcb0b8943b9e76eb69473188768a
  Author: zhijian <zhijian at ca.ibm.com>
  Date:   2021-10-01 (Fri, 01 Oct 2021)

  Changed paths:
    M llvm/include/llvm/Object/XCOFFObjectFile.h
    M llvm/lib/Object/XCOFFObjectFile.cpp
    M llvm/test/tools/llvm-objdump/XCOFF/print-linenumber.test
    A llvm/test/tools/llvm-objdump/XCOFF/symbol-table.test
    M llvm/tools/llvm-objdump/XCOFFDump.cpp
    M llvm/tools/llvm-objdump/XCOFFDump.h
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [AIX]implement the --syms and using "symbol index and qualname" for --sym --symbol--description for llvm-objdump for xcoff

Summary:

for xcoff :

implement the getSymbolFlag and getSymbolType() for option --syms.
llvm-objdump --sym , if the symbol is label, print the containing section for the symbol too.
when using llvm-objdump --sym --symbol--description, print the symbol index and qualname for symbol.
for example:
--symbol-description
00000000000000c0 l .text (csect: (idx: 2) .foov[PR]) (idx: 3) .foov

and without --symbol-description
00000000000000c0 l .text (csect: .foov) .foov

Reviewers: James Henderson,Esme Yi

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




More information about the All-commits mailing list