Merge "Enable safe ICF for all devices"
This commit is contained in:
commit
f7e79a591c
|
@ -46,7 +46,6 @@ var (
|
|||
arm64Ldflags = []string{
|
||||
"-Wl,--hash-style=gnu",
|
||||
"-Wl,-z,separate-code",
|
||||
"-Wl,--icf=safe",
|
||||
}
|
||||
|
||||
arm64Lldflags = append(ClangFilterUnknownLldflags(arm64Ldflags),
|
||||
|
@ -128,10 +127,10 @@ func init() {
|
|||
|
||||
var (
|
||||
arm64ClangArchVariantCflagsVar = map[string]string{
|
||||
"armv8-a": "${config.Arm64ClangArmv8ACflags}",
|
||||
"armv8-a": "${config.Arm64ClangArmv8ACflags}",
|
||||
"armv8-a-branchprot": "${config.Arm64ClangArmv8ABranchProtCflags}",
|
||||
"armv8-2a": "${config.Arm64ClangArmv82ACflags}",
|
||||
"armv8-2a-dotprod": "${config.Arm64ClangArmv82ADotprodCflags}",
|
||||
"armv8-2a": "${config.Arm64ClangArmv82ACflags}",
|
||||
"armv8-2a-dotprod": "${config.Arm64ClangArmv82ADotprodCflags}",
|
||||
}
|
||||
|
||||
arm64ClangCpuVariantCflagsVar = map[string]string{
|
||||
|
|
|
@ -34,7 +34,6 @@ var (
|
|||
armCppflags = []string{}
|
||||
|
||||
armLdflags = []string{
|
||||
"-Wl,--icf=safe",
|
||||
"-Wl,--hash-style=gnu",
|
||||
"-Wl,-m,armelf",
|
||||
}
|
||||
|
|
|
@ -97,6 +97,7 @@ var (
|
|||
"-Wl,--exclude-libs,libgcc_stripped.a",
|
||||
"-Wl,--exclude-libs,libunwind_llvm.a",
|
||||
"-Wl,--exclude-libs,libunwind.a",
|
||||
"-Wl,--icf=safe",
|
||||
}
|
||||
|
||||
deviceGlobalLldflags = append(ClangFilterUnknownLldflags(deviceGlobalLdflags),
|
||||
|
|
Loading…
Reference in New Issue