[all-commits] [llvm/llvm-project] 8610cb: [ELF] -r: don't define _TLS_MODULE_BASE_

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Nov 22 12:59:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8610cb04605bbae3399972875aef69e5e457a879
      https://github.com/llvm/llvm-project/commit/8610cb04605bbae3399972875aef69e5e457a879
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-11-22 (Tue, 22 Nov 2022)

  Changed paths:
    M lld/ELF/Writer.cpp
    M lld/test/ELF/x86-64-tlsdesc-ld.s

  Log Message:
  -----------
  [ELF] -r: don't define _TLS_MODULE_BASE_

_TLS_MODULE_BASE_ is supposed to be defined by the final link. Defining it in a
relocatable link may render the final link value incorrect.

GNU ld i386/x86-64 have the same issue: https://sourceware.org/bugzilla/show_bug.cgi?id=29820




More information about the All-commits mailing list