Merge "Enable safe ICF with LLD."
am: 63c6361f91
Change-Id: I3aef8c5b647870e1d2e9b4aed538f2f117955198
This commit is contained in:
@@ -86,7 +86,6 @@ var ClangUnknownCflags = sorted([]string{
|
|||||||
// Ldflags that should be filtered out when linking with clang lld
|
// Ldflags that should be filtered out when linking with clang lld
|
||||||
var ClangUnknownLldflags = sorted([]string{
|
var ClangUnknownLldflags = sorted([]string{
|
||||||
"-fuse-ld=gold",
|
"-fuse-ld=gold",
|
||||||
"-Wl,--icf=safe",
|
|
||||||
"-Wl,--fix-cortex-a8",
|
"-Wl,--fix-cortex-a8",
|
||||||
"-Wl,--no-fix-cortex-a8",
|
"-Wl,--no-fix-cortex-a8",
|
||||||
"-Wl,-m,aarch64_elf64_le_vec",
|
"-Wl,-m,aarch64_elf64_le_vec",
|
||||||
|
@@ -39,6 +39,10 @@ func ObjectFactory() android.Module {
|
|||||||
baseLinker: NewBaseLinker(nil),
|
baseLinker: NewBaseLinker(nil),
|
||||||
}
|
}
|
||||||
module.compiler = NewBaseCompiler()
|
module.compiler = NewBaseCompiler()
|
||||||
|
|
||||||
|
// Clang's address-significance tables are incompatible with ld -r.
|
||||||
|
module.compiler.appendCflags([]string{"-fno-addrsig"})
|
||||||
|
|
||||||
module.stl = &stl{}
|
module.stl = &stl{}
|
||||||
return module.Init()
|
return module.Init()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user