[all-commits] [llvm/llvm-project] 4da852: [ELF] Range-check the x86-64 GD-to-IE TLS optimiza...

Farid Zakaria via All-commits all-commits at lists.llvm.org
Mon Sep 21 15:57:35 PDT 2026


  Branch: refs/heads/users/fmzakari/llvm-225226
  Home:   https://github.com/llvm/llvm-project
  Commit: 4da852c1579b372e84be7fe6161bf2732869eeb5
      https://github.com/llvm/llvm-project/commit/4da852c1579b372e84be7fe6161bf2732869eeb5
  Author: Farid Zakaria <fmzakari at meta.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M lld/ELF/Arch/X86_64.cpp
    M lld/test/ELF/x86-64-tls-gdie.s
    M lld/test/ELF/x86-64-tls-pltoff64.s
    M lld/test/ELF/x86-64-tlsdesc-gd.s

  Log Message:
  -----------
  [ELF] Range-check the x86-64 GD-to-IE TLS optimizations

Add range-checks to relaxTlsGdToIe so that they fail when the PC-relative
displacement is larger than 32-bit (signed). The un-relaxed paths in
X86_64::relocate already do this via checkInt()

Assisted-By: Opus 5



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