Defer to clang for --hash-style
.
We fixed the clang driver to "do the right thing" based on target api level years ago, but these manual workarounds predate that (or were copy & pasted from places that predated that). We don't need them any more. See https://github.com/android/ndk/issues/2005 for more detail. Change-Id: I995741b8606e389e8de8272f1cc532624516245a
This commit is contained in:
@@ -530,13 +530,6 @@ func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
|
||||
flags.Global.LdFlags = append(flags.Global.LdFlags, RpathFlags(ctx)...)
|
||||
}
|
||||
|
||||
if ctx.useSdk() {
|
||||
// The bionic linker now has support gnu style hashes (which are much faster!), but shipping
|
||||
// to older devices requires the old style hash. Fortunately, we can build with both and
|
||||
// it'll work anywhere.
|
||||
flags.Global.LdFlags = append(flags.Global.LdFlags, "-Wl,--hash-style=both")
|
||||
}
|
||||
|
||||
flags.Global.LdFlags = append(flags.Global.LdFlags, toolchain.ToolchainLdflags())
|
||||
|
||||
// Version_script is not needed when linking stubs lib where the version
|
||||
|
Reference in New Issue
Block a user