b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 6 | --- a/crc_i386.S |
| 7 | +++ b/crc_i386.S |
| 8 | @@ -302,3 +302,5 @@ _crc32: /* ulg c |
| 9 | #endif /* i386 || _i386 || _I386 || __i386 */ |
| 10 | |
| 11 | #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */ |
| 12 | +.section .note.GNU-stack, "", @progbits |
| 13 | +.previous |
| 14 | --- a/match.S |
| 15 | +++ b/match.S |
| 16 | @@ -405,3 +405,5 @@ L__return: |
| 17 | #endif /* i386 || _I386 || _i386 || __i386 */ |
| 18 | |
| 19 | #endif /* !USE_ZLIB */ |
| 20 | +.section .note.GNU-stack, "", @progbits |
| 21 | +.previous |