[Driver] Don't passs --dynamic-linker in -r mode
authorBrad Smith <brad@comstyle.com>
Sat, 16 Jul 2022 23:36:52 +0000 (19:36 -0400)
committerBrad Smith <brad@comstyle.com>
Sun, 17 Jul 2022 00:13:24 +0000 (20:13 -0400)
commitabc8f2b7245f5da09612784ca6e5e0f3dfe4b42d
tree25fa82558ae46ba4f74317bd829fd00cc202c19d
parent0fbafb5a1c4381ded4bc7f59a5a6091c229faed7
[Driver] 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.

Reviewed by: MaskRay, phosek

Differential Revision: https://reviews.llvm.org/D129714
12 files changed:
clang/lib/Driver/ToolChains/Ananas.cpp
clang/lib/Driver/ToolChains/DragonFly.cpp
clang/lib/Driver/ToolChains/FreeBSD.cpp
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/lib/Driver/ToolChains/NetBSD.cpp
clang/lib/Driver/ToolChains/OpenBSD.cpp
clang/test/Driver/ananas.c
clang/test/Driver/dragonfly.c
clang/test/Driver/freebsd.c
clang/test/Driver/fuchsia.c
clang/test/Driver/netbsd.c
clang/test/Driver/openbsd.c