crypto/bio: fix build on UEFI#19738
crypto/bio: fix build on UEFI#19738liyi77 wants to merge 1 commit intoopenssl:OpenSSL_1_1_1-stablefrom
Conversation
Using floating point is not supported in UEFI and can cause build problems, for example due to SSE being disabled and x64 calling convention passing floats in SSE registers. Avoid those problems by not compiling the formating code for floating point numbers. Signed-off-by: Gerd Hoffmann <[email protected]>
33936ba to
85dc3a6
Compare
|
Maybe I am missing something here, but this doesn't look like a cherry pick to me. |
Oh sorry for the misunderstanding.
|
|
Why is there a #else that is not in the original PR? |
PR link reference is wrong, update to #17547. |
|
Unfortunately this is out of scope for 1.1.1 as that branch is for security fixes only now. |
|
@openssl/otc should we accept this into 1.1.1? |
|
This problem will cause EDK2 to fail to enable X509 certificate time check, really hope it can be merged into 1.1.1...... |
|
OTC: Removing the hold. It's up to the discretion of reviewers. |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
|
This PR is in a state where it requires action by @openssl/committers but the last update was 61 days ago |
|
This pull request is ready to merge |
|
Merged to 1.1.1 branch. Thank you. |
Using floating point is not supported in UEFI and can cause build problems, for example due to SSE being disabled and x64 calling convention passing floats in SSE registers. Avoid those problems by not compiling the formating code for floating point numbers. Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Hugo Landau <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #19738)
Using floating point is not supported in UEFI and can cause build problems, for example due to SSE being disabled and x64 calling convention passing floats in SSE registers. Avoid those problems by not compiling the formating code for floating point numbers. Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Hugo Landau <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#19738)
Cherry-pick from: #17547
When compiling openssl for tianocore compiling abs_val() and pow_10()
fails with the following error because SSE support is disabled:
crypto/bio/bio_print.c:587:46: error: SSE register return with SSE disabled
Fix that by using EFIAPI calling convention when compiling for UEFI.
EDK2 not support openssl-3.0, need fix it in openssl-1.1.1 also.