[all-commits] [llvm/llvm-project] b1847f: [XCOFF] write the aux header when the visibility i...

Esme via All-commits all-commits at lists.llvm.org
Wed Jul 20 04:11:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1847ff0686e7c43ebf6dc81cb08f8ca3305ab69
      https://github.com/llvm/llvm-project/commit/b1847ff0686e7c43ebf6dc81cb08f8ca3305ab69
  Author: esmeyi <esme.yi at ibm.com>
  Date:   2022-07-20 (Wed, 20 Jul 2022)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/XCOFF.h
    M llvm/lib/MC/XCOFFObjectWriter.cpp
    A llvm/test/CodeGen/PowerPC/aix-aux-header.ll
    M llvm/test/CodeGen/PowerPC/aix-xcoff-visibility.ll

  Log Message:
  -----------
  [XCOFF] write the aux header when the visibility is specified in XCOFF32.

The n_type field in the symbol table entry has two interpretations in XCOFF32, and a single interpretation in XCOFF64.
The new interpretation is used in XCOFF32 if the value of the o_vstamp field in the auxiliary header is 2.
In XCOFF64 and the new XCOFF32 interpretation, the n_type field is used for the symbol type and visibility.
The patch writes the aux header with an o_vstamp field value of 2 when the visibility is specified in XCOFF32 to make the new XCOFF32 interpretation used.

Reviewed By: DiggerLin, jhenderson

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




More information about the All-commits mailing list