~roguescholar/ipxe/trunk

Viewing all changes in revision 5978.

  • Committer: Michael Brown
  • Date: 2021-06-03 12:34:14 UTC
  • Revision ID: git-v1:f3f568e382a5f19824b3bfc6081cde39eee661e8
[crypto] Add memory output constraints for big-integer inline assembly

The ARM versions of the big-integer inline assembly functions include
constraints to indicate that the output value is modified by the
assembly code.  These constraints are not present in the equivalent
code for the x86 versions.

As of GCC 11, this results in the compiler reporting that the output
values may be uninitialized.

Fix by including the relevant memory output constraints.

Reported-by: Christian Hesse <mail@eworm.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: