diff options
author | Manoj Gupta <manojgupta@google.com> | 2019-09-13 13:08:14 -0700 |
---|---|---|
committer | Manoj Gupta <manojgupta@chromium.org> | 2019-09-16 03:35:03 +0000 |
commit | 802e83e0b17b770fb8ab9a5d3e5a5a0ab8635d60 (patch) | |
tree | 78b42714f8f275517e4915677b60550f079d191d /compiler_wrapper/testdata | |
parent | a0138fba847df4b2d8f873f0b344aab52c58888d (diff) | |
download | toolchain-utils-802e83e0b17b770fb8ab9a5d3e5a5a0ab8635d60.tar.gz |
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 <manojgupta@chromium.org>
Reviewed-by: Tobias Bosch <tbosch@google.com>
Diffstat (limited to 'compiler_wrapper/testdata')
24 files changed, 156 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/bisect.json b/compiler_wrapper/testdata/cros_clang_host_golden/bisect.json index a3218c5f..47ed1949 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/bisect.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/bisect.json @@ -26,6 +26,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -67,6 +68,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/clang_ftrapv_maincc_target_specific.json b/compiler_wrapper/testdata/cros_clang_host_golden/clang_ftrapv_maincc_target_specific.json index 0741b352..18a54945 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/clang_ftrapv_maincc_target_specific.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/clang_ftrapv_maincc_target_specific.json @@ -18,6 +18,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -48,6 +49,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -78,6 +80,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -108,6 +111,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -138,6 +142,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -168,6 +173,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -198,6 +204,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -228,6 +235,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -258,6 +266,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json b/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json index a5dd18d3..d46586f2 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json @@ -17,6 +17,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/clang_maincc_target_specific.json b/compiler_wrapper/testdata/cros_clang_host_golden/clang_maincc_target_specific.json index 363b610a..812686c7 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/clang_maincc_target_specific.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/clang_maincc_target_specific.json @@ -17,6 +17,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -46,6 +47,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -75,6 +77,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -104,6 +107,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -133,6 +137,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -162,6 +167,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -191,6 +197,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -220,6 +227,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -249,6 +257,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/clang_path.json b/compiler_wrapper/testdata/cros_clang_host_golden/clang_path.json index 668415f1..61537a59 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/clang_path.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/clang_path.json @@ -17,6 +17,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -49,6 +50,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -81,6 +83,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -113,6 +116,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -152,6 +156,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -196,6 +201,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -240,6 +246,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -274,6 +281,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -303,6 +311,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -332,6 +341,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -361,6 +371,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -393,6 +404,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/clang_sanitizer_args.json b/compiler_wrapper/testdata/cros_clang_host_golden/clang_sanitizer_args.json index 3bd1c0d6..7e7e54c0 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/clang_sanitizer_args.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/clang_sanitizer_args.json @@ -19,6 +19,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -51,6 +52,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -83,6 +85,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -115,6 +118,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -146,6 +150,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/clang_specific_args.json b/compiler_wrapper/testdata/cros_clang_host_golden/clang_specific_args.json index e0358ba1..40a84449 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/clang_specific_args.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/clang_specific_args.json @@ -28,6 +28,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -58,6 +59,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -89,6 +91,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -120,6 +123,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -151,6 +155,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -182,6 +187,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -213,6 +219,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/clangtidy.json b/compiler_wrapper/testdata/cros_clang_host_golden/clangtidy.json index 740dea13..b6588995 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/clangtidy.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/clangtidy.json @@ -33,6 +33,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -49,6 +50,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -95,6 +97,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -111,6 +114,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -159,6 +163,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -178,6 +183,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -227,6 +233,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -243,6 +250,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/force_disable_werror.json b/compiler_wrapper/testdata/cros_clang_host_golden/force_disable_werror.json index 1c629fa8..c3c316bf 100644 --- a/compiler_wrapper/testdata/cros_clang_host_golden/force_disable_werror.json +++ b/compiler_wrapper/testdata/cros_clang_host_golden/force_disable_werror.json @@ -20,6 +20,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -52,6 +53,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -70,6 +72,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -105,6 +108,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", @@ -123,6 +127,7 @@ "-Qunused-arguments", "-grecord-gcc-switches", "-fno-addrsig", + "-fuse-ld=lld", "-Wno-unused-local-typedefs", "-Wno-deprecated-declarations", "-Wno-tautological-constant-compare", diff --git a/compiler_wrapper/testdata/cros_hardened_golden/bisect.json b/compiler_wrapper/testdata/cros_hardened_golden/bisect.json index 8ea10ed9..25764de2 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/bisect.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/bisect.json @@ -33,6 +33,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -90,6 +91,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_golden/clang_ftrapv_maincc_target_specific.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_ftrapv_maincc_target_specific.json index e30b4613..847d0e5f 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/clang_ftrapv_maincc_target_specific.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_ftrapv_maincc_target_specific.json @@ -25,6 +25,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -72,6 +73,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", @@ -166,6 +169,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -213,6 +217,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -260,6 +265,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -307,6 +313,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -354,6 +361,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -401,6 +409,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_golden/clang_maincc_target_specific.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_maincc_target_specific.json index f605630a..15241001 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/clang_maincc_target_specific.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_maincc_target_specific.json @@ -24,6 +24,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -69,6 +70,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -114,6 +116,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -159,6 +162,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -204,6 +208,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -249,6 +254,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -294,6 +300,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -339,6 +346,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -384,6 +392,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_golden/clang_path.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_path.json index d9754fe7..86cead04 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/clang_path.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_path.json @@ -24,6 +24,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -72,6 +73,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -120,6 +122,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -168,6 +171,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -223,6 +227,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -283,6 +288,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -337,6 +343,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -387,6 +394,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -432,6 +440,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -477,6 +486,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -522,6 +532,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -570,6 +581,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_golden/clang_sanitizer_args.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_sanitizer_args.json index 83eebc81..9fa1f4f2 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/clang_sanitizer_args.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_sanitizer_args.json @@ -26,6 +26,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -73,6 +74,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -120,6 +122,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -167,6 +170,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -213,6 +217,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_golden/clang_specific_args.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json index af8a1435..c9ad6e46 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_specific_args.json @@ -35,6 +35,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -81,6 +82,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -128,6 +130,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -175,6 +178,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -222,6 +226,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -269,6 +274,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -316,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_golden/clang_sysroot_wrapper_common.json b/compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json index d82e812b..ff68d4bd 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/clang_sysroot_wrapper_common.json @@ -59,6 +59,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -107,6 +108,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -147,6 +149,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-D_FORTIFY_SOURCE=2", "-fno-omit-frame-pointer", @@ -191,6 +194,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-D_FORTIFY_SOURCE=2", "-fno-omit-frame-pointer", "-fno-stack-protector", @@ -236,6 +240,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-D_FORTIFY_SOURCE=2", "-mthumb", "-fno-stack-protector", @@ -280,6 +285,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_golden/clangtidy.json b/compiler_wrapper/testdata/cros_hardened_golden/clangtidy.json index 6776196f..03d0c437 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/clangtidy.json +++ b/compiler_wrapper/testdata/cros_hardened_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_golden/force_disable_werror.json b/compiler_wrapper/testdata/cros_hardened_golden/force_disable_werror.json index aed56d07..f80d9b65 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/force_disable_werror.json +++ b/compiler_wrapper/testdata/cros_hardened_golden/force_disable_werror.json @@ -27,6 +27,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -75,6 +76,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -109,6 +111,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -160,6 +163,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", diff --git a/compiler_wrapper/testdata/cros_hardened_golden/gcc_clang_syntax.json b/compiler_wrapper/testdata/cros_hardened_golden/gcc_clang_syntax.json index 572f5531..b9778247 100644 --- a/compiler_wrapper/testdata/cros_hardened_golden/gcc_clang_syntax.json +++ b/compiler_wrapper/testdata/cros_hardened_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", @@ -93,6 +94,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -156,6 +158,7 @@ "-Wno-unknown-warning-option", "-Wno-section", "-static-libgcc", + "-fuse-ld=lld", "-fstack-protector-strong", "-fPIE", "-pie", @@ -203,6 +206,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/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", |