diff options
| author | jsing <> | 2026-05-12 15:07:30 +0000 |
|---|---|---|
| committer | jsing <> | 2026-05-12 15:07:30 +0000 |
| commit | 6cbcbbbfb32b8105bcecc2b6440956e972004d10 (patch) | |
| tree | 7fa15ddb0e3646a86c606be850e219145886e1de /src/lib/libcrypto/md5 | |
| parent | fa699f744f690ecb17f06bdd1745c5cbaad43976 (diff) | |
| download | openbsd-6cbcbbbfb32b8105bcecc2b6440956e972004d10.tar.gz openbsd-6cbcbbbfb32b8105bcecc2b6440956e972004d10.tar.bz2 openbsd-6cbcbbbfb32b8105bcecc2b6440956e972004d10.zip | |
Add a guarded .note.GNU-stack section to crypto assembly files.
Add a .note.GNU-stack section to avoid ending up with an executable stack
on toolchains that believe we should have an executable stack by default.
Reported by ruuda on Github.
Discussed with tb@
Diffstat (limited to 'src/lib/libcrypto/md5')
| -rw-r--r-- | src/lib/libcrypto/md5/md5_amd64_generic.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/md5/md5_amd64_generic.S b/src/lib/libcrypto/md5/md5_amd64_generic.S index 35e6fcdada..02f6ebdbcc 100644 --- a/src/lib/libcrypto/md5/md5_amd64_generic.S +++ b/src/lib/libcrypto/md5/md5_amd64_generic.S | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: md5_amd64_generic.S,v 1.2 2026/03/28 13:11:28 jsing Exp $ */ | 1 | /* $OpenBSD: md5_amd64_generic.S,v 1.3 2026/05/12 15:07:30 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2025 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2025 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -231,3 +231,7 @@ md5_block_data_order: | |||
| 231 | popq %rbx | 231 | popq %rbx |
| 232 | 232 | ||
| 233 | ret | 233 | ret |
| 234 | |||
| 235 | #if defined(__linux__) && defined(__ELF__) | ||
| 236 | .section .note.GNU-stack,"",%progbits | ||
| 237 | #endif | ||
