summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Bentley <prb@google.com>2019-10-18 14:25:35 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-10-18 14:25:35 -0700
commit32dfab4256b6b01507145be35f830e3c2250d5e7 (patch)
tree51129dd7a5b39f045a8ec0dfee1b795d5b852542
parentceadb3bb3f99b548b33ba91af5874fd994652991 (diff)
parent1d07cf8f965987e1d262ac6682832d2b9c3b3289 (diff)
downloadboringssl-32dfab4256b6b01507145be35f830e3c2250d5e7.tar.gz
Compile BoringCrypto Module with single text and data section
am: 1d07cf8f96 Change-Id: Id1485c17a6b6d92ecda8da0135367b751b8e2df8
-rw-r--r--Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 1896afae..bce5322d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -97,6 +97,10 @@ cc_object {
cflags: [
"-DBORINGSSL_FIPS",
"-fPIC",
+ // -fno[data|text]-sections required to ensure a
+ // single text and data section for FIPS integrity check
+ "-fno-data-sections",
+ "-fno-function-sections",
],
linker_script: "src/crypto/fipsmodule/fips_shared.lds",
},