Merge "Use relocation-packer style relocation packing between 23 and 28."

This commit is contained in:
Elliott Hughes 2020-01-29 22:18:06 +00:00 committed by Gerrit Code Review
commit 730573cfc4
1 changed files with 2 additions and 0 deletions

View File

@ -367,6 +367,8 @@ func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
flags.Global.LdFlags = append(flags.Global.LdFlags,
"-Wl,--pack-dyn-relocs=android+relr",
"-Wl,--use-android-relr-tags")
} else if CheckSdkVersionAtLeast(ctx, 23) {
flags.Global.LdFlags = append(flags.Global.LdFlags, "-Wl,--pack-dyn-relocs=android")
}
}
} else {