Skip to content

Commit

Permalink
fixes scrypt-*.S for grsecurity-enabled kernels, noexecstack
Browse files Browse the repository at this point in the history
  • Loading branch information
novacoind committed Dec 17, 2013
1 parent 712447f commit 5e98169
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/leveldb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ OPT ?= -O2 -DNDEBUG # (A) Production use (optimized mode)

# detect what platform we're building on
$(shell CC="$(CC)" CXX="$(CXX)" TARGET_OS="$(TARGET_OS)" \
./build_detect_platform build_config.mk ./)
sh ./build_detect_platform build_config.mk ./)
# this file is generated by the previous line to set build flags and sources
include build_config.mk

Expand Down
4 changes: 4 additions & 0 deletions src/scrypt-arm.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* any later version. See COPYING for more details.
*/

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

#if defined(__arm__) && defined(__APCS_32__)

#if defined(__ARM_ARCH_5E__) || defined(__ARM_ARCH_5TE__) || \
Expand Down
4 changes: 4 additions & 0 deletions src/scrypt-x86.S
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

#if defined(__i386__)

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

#define gen_salsa8_core_quadround() \
movl 52(%esp), %ecx; \
movl 4(%esp), %edx; \
Expand Down

0 comments on commit 5e98169

Please sign in to comment.