Merge "Enable safe ICF for all devices" am: f7e79a591c am: 660e778db6

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1649333

Change-Id: Iedd890db0c4d5c65e3eb5b5d94808efa23208ea1
This commit is contained in:
Treehugger Robot
2021-03-25 10:02:54 +00:00
committed by Automerger Merge Worker
3 changed files with 4 additions and 5 deletions

View File

@@ -46,7 +46,6 @@ var (
arm64Ldflags = []string{ arm64Ldflags = []string{
"-Wl,--hash-style=gnu", "-Wl,--hash-style=gnu",
"-Wl,-z,separate-code", "-Wl,-z,separate-code",
"-Wl,--icf=safe",
} }
arm64Lldflags = append(ClangFilterUnknownLldflags(arm64Ldflags), arm64Lldflags = append(ClangFilterUnknownLldflags(arm64Ldflags),

View File

@@ -34,7 +34,6 @@ var (
armCppflags = []string{} armCppflags = []string{}
armLdflags = []string{ armLdflags = []string{
"-Wl,--icf=safe",
"-Wl,--hash-style=gnu", "-Wl,--hash-style=gnu",
"-Wl,-m,armelf", "-Wl,-m,armelf",
} }

View File

@@ -97,6 +97,7 @@ var (
"-Wl,--exclude-libs,libgcc_stripped.a", "-Wl,--exclude-libs,libgcc_stripped.a",
"-Wl,--exclude-libs,libunwind_llvm.a", "-Wl,--exclude-libs,libunwind_llvm.a",
"-Wl,--exclude-libs,libunwind.a", "-Wl,--exclude-libs,libunwind.a",
"-Wl,--icf=safe",
} }
deviceGlobalLldflags = append(ClangFilterUnknownLldflags(deviceGlobalLdflags), deviceGlobalLldflags = append(ClangFilterUnknownLldflags(deviceGlobalLdflags),