When compiled with LTO and FORTIFY_SOURCE=3 enabled together,
tpm2_makecredential outputs corrupted data which cannot be used with
tpm2_activatecredential.
This can be avoided by disabling compiler optimization for part of the
code using pragma.
This patch was obtained upstream from:
https://github.com/tpm2-software/tpm2-tools/pull/3219
This fixes the upstream issue:
https://github.com/tpm2-software/tpm2-tools/issues/3210
Resolves: rhbz#2171376
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>