Skip to content

Commit

Permalink
add more hardening flags
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Mar 5, 2024
1 parent d60f412 commit 760155b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions circle_scripts/deps_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export MAKEFLAGS
WGET_OPTIONS="--timeout=10"
export WGET_OPTIONS

CXXFLAGS_ADDON='-O2 -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong'
CFLAGS_ADDON='-O2 -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong'
CXXFLAGS_ADDON='-O2 -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection=full'
CFLAGS_ADDON='-O2 -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection=full'
CFLAGS_MORE='--param=ssp-buffer-size=1 -fstack-protector-all'
# ----------- config ------------

Expand Down
2 changes: 1 addition & 1 deletion circle_scripts/java_jni_lib_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ echo "JAVADIR1:""$JAVADIR1"
echo "JAVADIR2:""$JAVADIR2"


CFLAGS_ADDON='-O2 -g -fPIC -D_FORTIFY_SOURCE=2'
CFLAGS_ADDON='-O2 -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection=full'
CFLAGS_MORE="--param=ssp-buffer-size=1 -fstack-protector-all -std=gnu99 -I$_INST_/include/ -L$_INST_/lib"

# if [ "$1""x" == "localx" ]; then
Expand Down

0 comments on commit 760155b

Please sign in to comment.