Merge "Apply HWASan to libc-in-recovery."

am: 56cb729e82

Change-Id: Idf748bef27075984a7443a4cb810816c2d61815f
This commit is contained in:
Evgenii Stepanov
2018-11-19 13:07:44 -08:00
committed by android-build-merger

View File

@@ -299,7 +299,8 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
}
// HWASan ramdisk (which is built from recovery) goes over some bootloader limit.
if ctx.inRecovery() {
// Keep libc instrumented so that recovery can run hwasan-instrumented code if necessary.
if ctx.inRecovery() && !strings.HasPrefix(ctx.ModuleDir(), "bionic/libc") {
s.Hwaddress = nil
}