Issue |
64311
|
Summary |
BOLT and FIPS enabled boring ssl
|
Labels |
|
Assignees |
|
Reporter |
ss7pro
|
When using borings which is FIPS enabled it stores it's internal integrity data in .text segment (static library):
https://github.com/google/boringssl/blob/6738d477b8763abf38f6d1b60b6d799167ce9c8c/crypto/fipsmodule/bcm.c#L208
Unfortunately BOLT is changing alignment of .text which makes this data invalid. When using -use-old-text building optimized binary fails with error:
BOLT-WARNING: unable to disassemble instruction at offset 0x9 (address 0x4b2769) in function self_test_ecdsa_key.kQx/1
llvm-bolt: /home/tomasz/wdir/llvm-project/bolt/lib/Core/BinaryFunction.cpp:2887: void llvm::bolt::BinaryFunction::setIgnored(): Assertion `CurrentState == State::Empty && "cannot ignore non-empty functions in current mode"' failed.
Is there anything quick we can do to fix it?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs