[all-commits] [llvm/llvm-project] 8e0e44: [AIX][TLS] Account for local-exec accesses in XCOF...

Amy Kwan via All-commits all-commits at lists.llvm.org
Mon Jul 17 10:16:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e0e442c1d10fdb2acbac75a2c144b19b5d8e20f
      https://github.com/llvm/llvm-project/commit/8e0e442c1d10fdb2acbac75a2c144b19b5d8e20f
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2023-07-17 (Mon, 17 Jul 2023)

  Changed paths:
    M llvm/lib/MC/XCOFFObjectWriter.cpp
    M llvm/test/CodeGen/PowerPC/aix-tls-le-xcoff-reloc-large.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-xcoff-reloc-large32.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-xcoff-reloc.ll
    M llvm/test/CodeGen/PowerPC/aix-tls-le-xcoff-reloc32.ll

  Log Message:
  -----------
  [AIX][TLS] Account for local-exec accesses in XCOFFObjectWriter

This is a follow up to D149722 and aims to address https://github.com/llvm/llvm-project/issues/63885.
Local-exec accesses were not previously accounted for in XCOFFObjectWriter.
Specifically, the R_TLS_LE relocation was not previously handled, which lead to
the incorrect value being written for the relocation target.

Within this patch, the value being written is set to the symbol's virtual
address and extra relocation tests are added.

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




More information about the All-commits mailing list