[all-commits] [llvm/llvm-project] c41a18: [CMake] Default ENABLE_X86_RELAX_RELOCATIONS to ON

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Aug 2 23:06:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c41a18cf61790fc898dcda1055c3efbf442c14c0
      https://github.com/llvm/llvm-project/commit/c41a18cf61790fc898dcda1055c3efbf442c14c0
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-08-02 (Sun, 02 Aug 2020)

  Changed paths:
    M clang/CMakeLists.txt
    M llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn

  Log Message:
  -----------
  [CMake] Default ENABLE_X86_RELAX_RELOCATIONS to ON

This makes clang default to -Wa,-mrelax-relocations=yes, which enables
R_386_GOT32X (GNU as enables it regardless of -mrelax-relocations=) and
R_X86_64_[REX_]GOTPCRELX in MC. The produced object files require GNU ld>=2.26
to link. binutils 2.26 is considered a very old release today.




More information about the All-commits mailing list