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

Farid Zakaria via All-commits all-commits at lists.llvm.org
Tue Sep 22 11:42:44 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cbd68f670efa9f27946ead5b417fce7bb669eb8
      https://github.com/llvm/llvm-project/commit/4cbd68f670efa9f27946ead5b417fce7bb669eb8
  Author: Farid Zakaria <farid.m.zakaria at gmail.com>
  Date:   2026-09-22 (Tue, 22 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 (#225228)

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