Use relocation-packer style relocation packing between 23 and 28.
Bug: http://b/147452927 Test: treehugger Change-Id: I8197dcb7884993d75775eaea667981d7822d6d1d
This commit is contained in:
parent
b7ec426e01
commit
da909feb95
1 changed files with 2 additions and 0 deletions
|
@ -362,6 +362,8 @@ func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
|
||||||
flags.Global.LdFlags = append(flags.Global.LdFlags,
|
flags.Global.LdFlags = append(flags.Global.LdFlags,
|
||||||
"-Wl,--pack-dyn-relocs=android+relr",
|
"-Wl,--pack-dyn-relocs=android+relr",
|
||||||
"-Wl,--use-android-relr-tags")
|
"-Wl,--use-android-relr-tags")
|
||||||
|
} else if CheckSdkVersionAtLeast(ctx, 23) {
|
||||||
|
flags.Global.LdFlags = append(flags.Global.LdFlags, "-Wl,--pack-dyn-relocs=android")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue