Merge "Use relocation-packer style relocation packing between 23 and 28." am: 730573cfc4

Change-Id: Ic8952057b2c0b631c4ff66e4a5029098f17f9926
This commit is contained in:
Automerger Merge Worker 2020-01-30 17:52:05 +00:00
commit 6bae66aa74

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 {