[all-commits] [llvm/llvm-project] 0a0f69: [Hexagon] Move STT_TLS setting from fixELFSymbolsI...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Mar 22 20:01:16 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a0f691af6468372d2f5d31b83317fcc263e89d4
      https://github.com/llvm/llvm-project/commit/0a0f691af6468372d2f5d31b83317fcc263e89d4
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-03-22 (Sat, 22 Mar 2025)

  Changed paths:
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonELFObjectWriter.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCExpr.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCExpr.h

  Log Message:
  -----------
  [Hexagon] Move STT_TLS setting from fixELFSymbolsInTLSFixups to getRelocType

The legacy generic code uses `ELFObjectWriter::fixSymbolsInTLSFixups` to
set `STT_TLS` (and use an unnecessary expression walk). The better way
is to do this in `getRelocType`, which I have done for AArch64, PowerPC,
RISC-V, and X86.



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