[all-commits] [llvm/llvm-project] 95dcae: [Driver][Linux] Pass --hash-style=gnu to ld unless...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Aug 28 12:13:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95dcaef00379e893dabc61cf598fe51c9d03414e
      https://github.com/llvm/llvm-project/commit/95dcaef00379e893dabc61cf598fe51c9d03414e
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-28 (Sun, 28 Aug 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Linux.cpp

  Log Message:
  -----------
  [Driver][Linux] Pass --hash-style=gnu to ld unless special cased

To align with many Linux distributions which configure GCC with
--enable-default-hash-style=gnu or binutils with --with-linker-hash-style=gnu.
ld.lld does not support changed default, so passing the option in the driver is
better.

Note: there was a bug that Debian specified both --hash-style=gnu and
--hash-style=both. Actually its GCC has defaulted to --hash-style=gnu since 2007.




More information about the All-commits mailing list