From c89362c767ba3255358f5bf5630bdef8cb3d107d Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 7 May 2010 00:41:15 +0100 Subject: openssl: Fix build of openssl-native on x86_64 with recent binutils Apply a patch from upstream that fixes the build, patch should be able to be dropped when we update openssl version. Signed-off-by: Joshua Lock --- .../openssl/openssl-0.9.8g/fix-md5-x86_64.patch | 47 ++++++++++++++++++++++ meta/packages/openssl/openssl_0.9.8g.bb | 3 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 meta/packages/openssl/openssl-0.9.8g/fix-md5-x86_64.patch (limited to 'meta/packages/openssl') diff --git a/meta/packages/openssl/openssl-0.9.8g/fix-md5-x86_64.patch b/meta/packages/openssl/openssl-0.9.8g/fix-md5-x86_64.patch new file mode 100644 index 000000000..05b48ab11 --- /dev/null +++ b/meta/packages/openssl/openssl-0.9.8g/fix-md5-x86_64.patch @@ -0,0 +1,47 @@ +Fix for building md5-x86_64.pl with recent gcc and binutils (as first discovered +on my Fedora 13 machine). + +Patch taken from upstream bug tracker: +http://rt.openssl.org/Ticket/Display.html?id=2094&user=guest&pass=guest + +This issue is marked as resolved upstream (on 13/11/2009) so we should be able +to remove this patch when we update openssl. + +JL - 07/05/2010 + +Index: openssl-0.9.8g/crypto/md5/asm/md5-x86_64.pl +=================================================================== +--- openssl-0.9.8g.orig/crypto/md5/asm/md5-x86_64.pl 2010-05-07 00:24:16.000000000 +0100 ++++ openssl-0.9.8g/crypto/md5/asm/md5-x86_64.pl 2010-05-07 00:26:25.639809341 +0100 +@@ -19,6 +19,7 @@ + sub round1_step + { + my ($pos, $dst, $x, $y, $z, $k_next, $T_i, $s) = @_; ++ $T_i = unpack("l",pack("l", hex($T_i))); # convert to 32-bit signed decimal + $code .= " mov 0*4(%rsi), %r10d /* (NEXT STEP) X[0] */\n" if ($pos == -1); + $code .= " mov %edx, %r11d /* (NEXT STEP) z' = %edx */\n" if ($pos == -1); + $code .= <