[all-commits] [llvm/llvm-project] 57e43e: [Driver][Gnu] Don't passs --dynamic-linker in -r mode

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Jun 18 23:13:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57e43ebc42d4e572cab1e84532115c364d5db92a
      https://github.com/llvm/llvm-project/commit/57e43ebc42d4e572cab1e84532115c364d5db92a
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-06-18 (Sat, 18 Jun 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/test/Driver/linux-cross.cpp

  Log Message:
  -----------
  [Driver][Gnu] Don't passs --dynamic-linker in -r mode

No behavior change as GNU ld/gold/ld.lld ignore --dynamic-linker in -r mode.
This change makes the intention clearer as we already suppress --dynamic-linker
for -shared, -static, and -static-pie.




More information about the All-commits mailing list