Add .text.unlikely.* pattern to fips_shared.lds. Newer versions of LLVM may use profile information to put code in sections named .text.unlikely.*. Make sure those sections end up in our .text section. Change-Id: Ia0224fd8e683f5e77c60dd3ad34d59b33f9b41ab Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/44804 Commit-Queue: Peter Collingbourne <pcc@google.com> Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/fipsmodule/fips_shared.lds b/crypto/fipsmodule/fips_shared.lds index 323de73..ebd3c89 100644 --- a/crypto/fipsmodule/fips_shared.lds +++ b/crypto/fipsmodule/fips_shared.lds
@@ -3,6 +3,7 @@ .text : { BORINGSSL_bcm_text_start = .; *(.text) + *(.text.unlikely.*) BORINGSSL_bcm_text_end = .; } .rodata : {