diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml
index e83fb4f..2a8a06a 100644
--- a/.github/workflows/build-and-release.yml
+++ b/.github/workflows/build-and-release.yml
@@ -20,7 +20,7 @@ jobs:
# Linux - x86_64
- os: ubuntu-latest
arch: x86_64
- cmake_args: '-DCMAKE_BUILD_TYPE=Release -DARCH=native -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="-fPIC"'
+ cmake_args: '-DCMAKE_BUILD_TYPE=Release -DARCH=native -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_SHARED_LINKER_FLAGS="-z noexecstack"'
artifact_name: 'librandomx_linux_x86_64.so'
output_lib: 'librandomx_linux_x86_64.so'
# macOS - x86_64
diff --git a/README.md b/README.md
index 3136220..29eea4d 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ Compile and copy the appropriate shared library for your platform:
```bash
cd randomx
mkdir build && cd build
-cmake .. -DCMAKE_BUILD_TYPE=Release -DARCH=native -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="-fPIC"
+cmake .. -DCMAKE_BUILD_TYPE=Release -DARCH=native -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_SHARED_LINKER_FLAGS="-z noexecstack"
make -j4
cp -i librandomx.so ../../src/main/resources/native/librandomx_linux_x86_64.so
```
diff --git a/pom.xml b/pom.xml
index 87f4ab3..64952c1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.xdag
xdagj-native-randomx
- 0.2.4
+ 0.2.5
xdagj-native-randomx
A Java RandomX Library For XDAGJ
diff --git a/src/main/resources/native/librandomx_linux_x86_64.so b/src/main/resources/native/librandomx_linux_x86_64.so
index b183a68..808d433 100644
Binary files a/src/main/resources/native/librandomx_linux_x86_64.so and b/src/main/resources/native/librandomx_linux_x86_64.so differ