2
0

006-stack-markings-to-avoid-executable-stack.patch 596 B

123456789101112131415161718192021
  1. From: Kees Cook <kees@debian.org>
  2. Subject: put stack markings in i386 assembly to avoid executable stack
  3. Bug-Debian: http://bugs.debian.org/528280
  4. X-Debian-version: 3.0-2
  5. --- a/crc_i386.S
  6. +++ b/crc_i386.S
  7. @@ -302,3 +302,5 @@ _crc32: /* ulg c
  8. #endif /* i386 || _i386 || _I386 || __i386 */
  9. #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */
  10. +.section .note.GNU-stack, "", @progbits
  11. +.previous
  12. --- a/match.S
  13. +++ b/match.S
  14. @@ -405,3 +405,5 @@ L__return:
  15. #endif /* i386 || _I386 || _i386 || __i386 */
  16. #endif /* !USE_ZLIB */
  17. +.section .note.GNU-stack, "", @progbits
  18. +.previous