patch-src_sha1-sse2_S 617 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_sha1-sse2_S,v 1.3 2012/12/21 17:10:39 landry Exp $
  2. chunk 2 needed on hppa, otherwise fails with
  3. sha1-sse2.S:469: Error: unknown pseudo-op: `.note.gnu'
  4. --- src/sha1-sse2.S.orig Thu Jan 21 18:01:28 2010
  5. +++ src/sha1-sse2.S Fri Dec 21 10:02:29 2012
  6. @@ -13,7 +13,7 @@
  7. #define MANGLE(x) x
  8. #endif
  9. -#if defined(__i386__) || defined(__x86_64__)
  10. +#if (defined(__i386__) || defined(__x86_64__)) && !defined(__PIC__)
  11. .globl shasse2_init;
  12. .globl shasse2_ends;
  13. @@ -466,5 +466,5 @@ cpuid_exit:
  14. #ifdef __ELF__
  15. -.section .note.GNU-stack,"",%progbits
  16. + .section .note.GNU-stack,"",%progbits
  17. #endif