“Fix” FIPS build under ASAN.
It's not obvious how to make ASAN happy with the integrity test but this
will let us test FIPS-only code with ASAN at least.
Change-Id: Iac983787e04cb86a158e4416c410d9b2d1e5e03f
Reviewed-on: https://boringssl-review.googlesource.com/14965
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/fipsmodule/delocate.go b/crypto/fipsmodule/delocate.go
index 6d6d9b2..3be35d4 100644
--- a/crypto/fipsmodule/delocate.go
+++ b/crypto/fipsmodule/delocate.go
@@ -49,6 +49,10 @@
asPaths := strings.Split(*asmFiles, ",")
for i, path := range asPaths {
+ if len(path) == 0 {
+ continue
+ }
+
if lines, err = asLines(lines, path, i); err != nil {
panic(err)
}
@@ -258,6 +262,7 @@
}
}
+ ret = append(ret, ".text")
ret = append(ret, "BORINGSSL_bcm_text_end:")
// Emit redirector functions. Each is a single JMP instruction.