summaryrefslogtreecommitdiffstats
path: root/debian/patches/do_not_inline_makeiv.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:41:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:41:43 +0000
commitae9f484622ec96026c9e553da2b2c7d4d021073e (patch)
tree40b42c9f04a3798eaa26c0eed076bdd1269d13c6 /debian/patches/do_not_inline_makeiv.patch
parentAdding upstream version 0.9.2. (diff)
downloadlibtpms-debian.tar.xz
libtpms-debian.zip
Adding debian version 0.9.2-3.1.debian/0.9.2-3.1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/do_not_inline_makeiv.patch')
-rw-r--r--debian/patches/do_not_inline_makeiv.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/do_not_inline_makeiv.patch b/debian/patches/do_not_inline_makeiv.patch
new file mode 100644
index 0000000..393e2ac
--- /dev/null
+++ b/debian/patches/do_not_inline_makeiv.patch
@@ -0,0 +1,20 @@
+Do not inline MakeIV due toppc64 compiler issue
+
+The ppc64 gcc compiler has an issue with MakeIv.
+
+---
+ src/tpm2/AlgorithmTests.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/src/tpm2/AlgorithmTests.c
++++ b/src/tpm2/AlgorithmTests.c
+@@ -179,6 +179,9 @@
+ /* 10.2.1.4.1 MakeIv() */
+ /* Internal function to make the appropriate IV depending on the mode. */
+ static UINT32
++#if defined(__powerpc64__)
++__attribute__((noinline))
++#endif
+ MakeIv(
+ TPM_ALG_ID mode, // IN: symmetric mode
+ UINT32 size, // IN: block size of the algorithm