From 802e83e0b17b770fb8ab9a5d3e5a5a0ab8635d60 Mon Sep 17 00:00:00 2001 From: Manoj Gupta Date: Fri, 13 Sep 2019 13:08:14 -0700 Subject: clang wrappers: Use LLD as the default linker. Match the changes to python wrapper in CL:1686078. Also add small fix for echo path, it should be /bin/echo instead of /usr/bin/echo. BUG=chromium:979909 TEST=go test Change-Id: I5e626febd5abab4f9824aba1e158f264bf75be9e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1803778 Tested-by: Manoj Gupta Reviewed-by: Tobias Bosch --- .../testdata/cros_hardened_noccache_golden/bisect.json | 2 ++ .../testdata/cros_hardened_noccache_golden/clang_path.json | 12 ++++++++++++ .../testdata/cros_hardened_noccache_golden/clangtidy.json | 8 ++++++++ .../cros_hardened_noccache_golden/force_disable_werror.json | 5 +++++ .../cros_hardened_noccache_golden/gcc_clang_syntax.json | 4 ++++ 5 files changed, 31 insertions(+) (limited to 'compiler_wrapper/testdata/cros_hardened_noccache_golden') diff --git a/compiler_wrapper/testdata/cros_hardened_noccache_golden/bisect.json b/compiler_wrapper/testdata/cros_hardened_noccache_golden/bisect.json index fc1e8bd4..fd6e5a36 100644 --- a/compiler_wrapper/testdata/cros_hardened_noccache_golden/bisect.json +++ b/compiler_wrapper/testdata/cros_hardened_noccache_golden/bisect.json @@ -32,6 +32,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -82,6 +83,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", diff --git a/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json b/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json index b1517675..8062e8a5 100644 --- a/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json +++ b/compiler_wrapper/testdata/cros_hardened_noccache_golden/clang_path.json @@ -23,6 +23,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -64,6 +65,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -105,6 +107,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -146,6 +149,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -194,6 +198,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -248,6 +253,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -301,6 +307,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -344,6 +351,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -382,6 +390,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -420,6 +429,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -458,6 +468,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -499,6 +510,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", diff --git a/compiler_wrapper/testdata/cros_hardened_noccache_golden/clangtidy.json b/compiler_wrapper/testdata/cros_hardened_noccache_golden/clangtidy.json index 6776196f..03d0c437 100644 --- a/compiler_wrapper/testdata/cros_hardened_noccache_golden/clangtidy.json +++ b/compiler_wrapper/testdata/cros_hardened_noccache_golden/clangtidy.json @@ -39,6 +39,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -64,6 +65,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -119,6 +121,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -145,6 +148,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -202,6 +206,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -231,6 +236,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -289,6 +295,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -315,6 +322,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", diff --git a/compiler_wrapper/testdata/cros_hardened_noccache_golden/force_disable_werror.json b/compiler_wrapper/testdata/cros_hardened_noccache_golden/force_disable_werror.json index 4fd9304b..5510eec8 100644 --- a/compiler_wrapper/testdata/cros_hardened_noccache_golden/force_disable_werror.json +++ b/compiler_wrapper/testdata/cros_hardened_noccache_golden/force_disable_werror.json @@ -26,6 +26,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -67,6 +68,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -94,6 +96,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -138,6 +141,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -165,6 +169,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", diff --git a/compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_clang_syntax.json b/compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_clang_syntax.json index 341de8a3..ff7b3c9d 100644 --- a/compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_clang_syntax.json +++ b/compiler_wrapper/testdata/cros_hardened_noccache_golden/gcc_clang_syntax.json @@ -24,6 +24,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -87,6 +88,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -150,6 +152,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -197,6 +200,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", -- cgit v1.2.3