diff options
author | Ludwig Nussel <ludwig.nussel@suse.de> | 2022-08-25 12:48:07 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-08-30 17:21:53 +0200 |
commit | 526625bc83e63e6e5a3ec5296a1b868e72b3b01e (patch) | |
tree | 901528ccb11153fd00c888ad817386a885f72aa2 | |
parent | dd79e1d4d3b9725e927d1c26e0d3fdb49e29ba9c (diff) | |
download | busybox-w32-526625bc83e63e6e5a3ec5296a1b868e72b3b01e.tar.gz busybox-w32-526625bc83e63e6e5a3ec5296a1b868e72b3b01e.tar.bz2 busybox-w32-526625bc83e63e6e5a3ec5296a1b868e72b3b01e.zip |
libbb: mark stack in assembly files read-only
Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/hash_md5_sha256_x86-32_shaNI.S | 3 | ||||
-rw-r--r-- | libbb/hash_md5_sha256_x86-64_shaNI.S | 3 | ||||
-rw-r--r-- | libbb/hash_md5_sha_x86-32_shaNI.S | 3 | ||||
-rw-r--r-- | libbb/hash_md5_sha_x86-64.S | 3 | ||||
-rwxr-xr-x | libbb/hash_md5_sha_x86-64.S.sh | 3 | ||||
-rw-r--r-- | libbb/hash_md5_sha_x86-64_shaNI.S | 3 |
6 files changed, 18 insertions, 0 deletions
diff --git a/libbb/hash_md5_sha256_x86-32_shaNI.S b/libbb/hash_md5_sha256_x86-32_shaNI.S index 3905bad9a..a0e4a571a 100644 --- a/libbb/hash_md5_sha256_x86-32_shaNI.S +++ b/libbb/hash_md5_sha256_x86-32_shaNI.S | |||
@@ -19,6 +19,9 @@ | |||
19 | // We do not check SSSE3 in cpuid, | 19 | // We do not check SSSE3 in cpuid, |
20 | // all SHA-capable CPUs support it as well. | 20 | // all SHA-capable CPUs support it as well. |
21 | 21 | ||
22 | #ifdef __linux__ | ||
23 | .section .note.GNU-stack, "", @progbits | ||
24 | #endif | ||
22 | .section .text.sha256_process_block64_shaNI, "ax", @progbits | 25 | .section .text.sha256_process_block64_shaNI, "ax", @progbits |
23 | .globl sha256_process_block64_shaNI | 26 | .globl sha256_process_block64_shaNI |
24 | .hidden sha256_process_block64_shaNI | 27 | .hidden sha256_process_block64_shaNI |
diff --git a/libbb/hash_md5_sha256_x86-64_shaNI.S b/libbb/hash_md5_sha256_x86-64_shaNI.S index 082ceafe4..172c2eae2 100644 --- a/libbb/hash_md5_sha256_x86-64_shaNI.S +++ b/libbb/hash_md5_sha256_x86-64_shaNI.S | |||
@@ -19,6 +19,9 @@ | |||
19 | // We do not check SSSE3 in cpuid, | 19 | // We do not check SSSE3 in cpuid, |
20 | // all SHA-capable CPUs support it as well. | 20 | // all SHA-capable CPUs support it as well. |
21 | 21 | ||
22 | #ifdef __linux__ | ||
23 | .section .note.GNU-stack, "", @progbits | ||
24 | #endif | ||
22 | .section .text.sha256_process_block64_shaNI, "ax", @progbits | 25 | .section .text.sha256_process_block64_shaNI, "ax", @progbits |
23 | .globl sha256_process_block64_shaNI | 26 | .globl sha256_process_block64_shaNI |
24 | .hidden sha256_process_block64_shaNI | 27 | .hidden sha256_process_block64_shaNI |
diff --git a/libbb/hash_md5_sha_x86-32_shaNI.S b/libbb/hash_md5_sha_x86-32_shaNI.S index 2366b046a..7455a29f0 100644 --- a/libbb/hash_md5_sha_x86-32_shaNI.S +++ b/libbb/hash_md5_sha_x86-32_shaNI.S | |||
@@ -25,6 +25,9 @@ | |||
25 | // We do not check SSSE3/SSE4.1 in cpuid, | 25 | // We do not check SSSE3/SSE4.1 in cpuid, |
26 | // all SHA-capable CPUs support them as well. | 26 | // all SHA-capable CPUs support them as well. |
27 | 27 | ||
28 | #ifdef __linux__ | ||
29 | .section .note.GNU-stack, "", @progbits | ||
30 | #endif | ||
28 | .section .text.sha1_process_block64_shaNI, "ax", @progbits | 31 | .section .text.sha1_process_block64_shaNI, "ax", @progbits |
29 | .globl sha1_process_block64_shaNI | 32 | .globl sha1_process_block64_shaNI |
30 | .hidden sha1_process_block64_shaNI | 33 | .hidden sha1_process_block64_shaNI |
diff --git a/libbb/hash_md5_sha_x86-64.S b/libbb/hash_md5_sha_x86-64.S index 1d55b91f8..2cdd22015 100644 --- a/libbb/hash_md5_sha_x86-64.S +++ b/libbb/hash_md5_sha_x86-64.S | |||
@@ -1,6 +1,9 @@ | |||
1 | ### Generated by hash_md5_sha_x86-64.S.sh ### | 1 | ### Generated by hash_md5_sha_x86-64.S.sh ### |
2 | 2 | ||
3 | #if CONFIG_SHA1_SMALL == 0 && defined(__GNUC__) && defined(__x86_64__) | 3 | #if CONFIG_SHA1_SMALL == 0 && defined(__GNUC__) && defined(__x86_64__) |
4 | #ifdef __linux__ | ||
5 | .section .note.GNU-stack, "", @progbits | ||
6 | #endif | ||
4 | .section .text.sha1_process_block64, "ax", @progbits | 7 | .section .text.sha1_process_block64, "ax", @progbits |
5 | .globl sha1_process_block64 | 8 | .globl sha1_process_block64 |
6 | .hidden sha1_process_block64 | 9 | .hidden sha1_process_block64 |
diff --git a/libbb/hash_md5_sha_x86-64.S.sh b/libbb/hash_md5_sha_x86-64.S.sh index 40c979d35..653fe4989 100755 --- a/libbb/hash_md5_sha_x86-64.S.sh +++ b/libbb/hash_md5_sha_x86-64.S.sh | |||
@@ -127,6 +127,9 @@ echo \ | |||
127 | "### Generated by hash_md5_sha_x86-64.S.sh ### | 127 | "### Generated by hash_md5_sha_x86-64.S.sh ### |
128 | 128 | ||
129 | #if CONFIG_SHA1_SMALL == 0 && defined(__GNUC__) && defined(__x86_64__) | 129 | #if CONFIG_SHA1_SMALL == 0 && defined(__GNUC__) && defined(__x86_64__) |
130 | #ifdef __linux__ | ||
131 | .section .note.GNU-stack, \"\", @progbits | ||
132 | #endif | ||
130 | .section .text.sha1_process_block64, \"ax\", @progbits | 133 | .section .text.sha1_process_block64, \"ax\", @progbits |
131 | .globl sha1_process_block64 | 134 | .globl sha1_process_block64 |
132 | .hidden sha1_process_block64 | 135 | .hidden sha1_process_block64 |
diff --git a/libbb/hash_md5_sha_x86-64_shaNI.S b/libbb/hash_md5_sha_x86-64_shaNI.S index 794e97040..2f03e1ce4 100644 --- a/libbb/hash_md5_sha_x86-64_shaNI.S +++ b/libbb/hash_md5_sha_x86-64_shaNI.S | |||
@@ -25,6 +25,9 @@ | |||
25 | // We do not check SSSE3/SSE4.1 in cpuid, | 25 | // We do not check SSSE3/SSE4.1 in cpuid, |
26 | // all SHA-capable CPUs support them as well. | 26 | // all SHA-capable CPUs support them as well. |
27 | 27 | ||
28 | #ifdef __linux__ | ||
29 | .section .note.GNU-stack, "", @progbits | ||
30 | #endif | ||
28 | .section .text.sha1_process_block64_shaNI, "ax", @progbits | 31 | .section .text.sha1_process_block64_shaNI, "ax", @progbits |
29 | .globl sha1_process_block64_shaNI | 32 | .globl sha1_process_block64_shaNI |
30 | .hidden sha1_process_block64_shaNI | 33 | .hidden sha1_process_block64_shaNI |