[all-commits] [llvm/llvm-project] 4688b9: [lld][Hexagon] Fix R_HEX_TPREL_11_X relocation on ...

Brian Cain via All-commits all-commits at lists.llvm.org
Wed Feb 11 02:07:20 PST 2026


  Branch: refs/heads/release/22.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 4688b97ecddb5f2217a3b6fa22eef86d3e21088f
      https://github.com/llvm/llvm-project/commit/4688b97ecddb5f2217a3b6fa22eef86d3e21088f
  Author: Brian Cain <brian.cain at oss.qualcomm.com>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M lld/ELF/Arch/Hexagon.cpp
    M lld/test/ELF/hexagon-tls-ie.s

  Log Message:
  -----------
  [lld][Hexagon] Fix R_HEX_TPREL_11_X relocation on duplex instructions (#179860)

findMaskR11() was missing handling for duplex instructions. This caused
incorrect encoding when R_HEX_TPREL_11_X relocations were applied to
duplex instructions with large TLS offsets.

For duplex instructions, the immediate bits are located at positions
20-25 (mask 0x03f00000), not in the standard positions used for
non-duplex instructions.

This fix adds the isDuplex() check to findMaskR11() to return the
correct mask for duplex instruction encodings.

(cherry picked from commit 62d018b87a161bb2797c1ed03a482ffcdc8b162c)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list