[PATCH] D155415: [AIX][TLS] Account for local-exec accesses in XCOFFObjectWriter

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 16 19:28:19 PDT 2023


amyk created this revision.
amyk added reviewers: hubert.reinterpretcast, PowerPC, power-llvm-team.
amyk added a project: LLVM.
Herald added subscribers: hiraditya, nemanjai.
Herald added a project: All.
amyk requested review of this revision.
Herald added a subscriber: llvm-commits.

This is a follow up to D149722 <https://reviews.llvm.org/D149722> and aims to address https://github.com/llvm/llvm-project/issues/63885. 
Local-exec accesses were not previously set in XCOFFObjectWriter, which lead to the incorrect value being written for relocation target.
Within this patch, the value being written is set to the symbol's virtual address and extra relocation tests are added.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155415

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155415.540844.patch
Type: text/x-patch
Size: 55539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230717/ae1f8905/attachment-0001.bin>


More information about the llvm-commits mailing list