From bf94889984609f31bef5f487d54bbe9a3a54b277 Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Fri, 7 May 2021 14:36:44 -0700 Subject: [PATCH] arch/loongson3: move -flto-partition=none away from common flags --- arch/loongson3.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/loongson3.sh b/arch/loongson3.sh index df319bf..5126745 100644 --- a/arch/loongson3.sh +++ b/arch/loongson3.sh @@ -1,7 +1,8 @@ #!/bin/bash ##arch/loongson3.sh: Build definitions for Loongson 3A/B 1000-4000+. ##@copyright GPL-2.0+ -CFLAGS_GCC_ARCH='-mabi=64 -march=gs464 -mtune=gs464e -mfix-loongson3-llsc -mxgot -flto-partition=none ' +CFLAGS_GCC_ARCH='-mabi=64 -march=gs464 -mtune=gs464e -mfix-loongson3-llsc -mxgot ' CFLAGS_CLANG_ARCH='-mabi=64 -march=mips64r2 -mtune=mips64r2 ' +CFLAGS_GCC_OPTI_LTO="${CFLAGS_COMMON_OPTI_LTO} -flto-partition=none " LDFLAGS_GCC_OPTI_LTO="${LDFLAGS_COMMON_OPTI_LTO} -mxgot -flto-partition=none " RUSTFLAGS_COMMON_OPTI_LTO="${RUSTFLAGS_COMMON_OPTI_LTO} -Clink-arg=-Wl,-build-id=sha1 -Clink-arg=-Wl,-z,notext "