[PATCH] D154048: [PowerPC] fix jumptable encoding when ppc-use-absolute-jumptables is turned on

Ting Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 4 00:54:07 PDT 2023


tingwang added a comment.

In D154048#4467834 <https://reviews.llvm.org/D154048#4467834>, @shchenz wrote:

> add @joerg who helped to add PIC mode jump table in https://reviews.llvm.org/D26336

Thank you for the info. Now I see the factor on AIX: xlc put jump tables in data section (which is writable) with R_POS relocation. Loader will update those entries. While in LLVM right now, jump tables are emitted in text section. Now for absolute BlockAddress, even if linker added R_POS relocation for those entries, loader cannot do update because that's text section, and it generates error like following:

  0509-141   Relocation entry 0 (at address 1000003E0)
                     has an invalid l_rsecnm field.

The fix is wrong. I will update patch later.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154048/new/

https://reviews.llvm.org/D154048



More information about the llvm-commits mailing list