[llvm] [BOLT] Fix fixed pic handling in indirect jumps (PR #178578)

Alexey Moksyakov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 3 02:32:06 PST 2026


yavtuk wrote:

yes, you are right, JT->getLabel is not possibly to use under if, but I still think that checking entryAddress and startAddress is no good way to fix this issue, in my opinion we should check if there is jump table containing the EntryAdress and if so need to delete  it to re-create again later, also later need to replace memory operand for FixedEntryLoadInstr instruction to JT label entry. May I ask you to verify your patch on the libc which is attached here
https://github.com/llvm/llvm-project/pull/178815, pay attention to  __GI___res_context_query/1 function which  contains 3 jump tables

I re-check my patch again and attach new one here
[patch2.diff.txt](https://github.com/user-attachments/files/25043043/patch2.diff.txt)


https://github.com/llvm/llvm-project/pull/178578


More information about the llvm-commits mailing list