Skip to content
Permalink
Browse files

Bug #23024: Use -fstack-protector-all and -D_FORTIFY_SOURCE=2 on ming…

…w-w64 build
  • Loading branch information...
arthuredelstein committed Jul 16, 2017
1 parent 7ebcf64 commit 2aa00f10d6b5c2d831b3081ca6780e5f5592aa8c
Showing with 2 additions and 2 deletions.
  1. +1 −1 projects/mingw-w64/i686-w64-mingw32-g++
  2. +1 −1 projects/mingw-w64/i686-w64-mingw32-gcc
@@ -1,4 +1,4 @@
#!/bin/sh
# Hardened mingw gcc wrapper

/var/tmp/dist/mingw-w64/bin/i686-w64-mingw32-g++ -Wl,--dynamicbase -Wl,--nxcompat -Wl,--enable-reloc-section -fstack-protector --param ssp-buffer-size=4 -fno-strict-overflow "$@"
/var/tmp/dist/mingw-w64/bin/i686-w64-mingw32-g++ -Wl,--dynamicbase -Wl,--nxcompat -Wl,--enable-reloc-section -fstack-protector-all -D_FORTIFY_SOURCE=2 -fno-strict-overflow "$@"
@@ -1,4 +1,4 @@
#!/bin/sh
# Hardened mingw gcc wrapper

/var/tmp/dist/mingw-w64/bin/i686-w64-mingw32-gcc -Wl,--dynamicbase -Wl,--nxcompat -Wl,--enable-reloc-section -fstack-protector --param ssp-buffer-size=4 -fno-strict-overflow "$@"
/var/tmp/dist/mingw-w64/bin/i686-w64-mingw32-gcc -Wl,--dynamicbase -Wl,--nxcompat -Wl,--enable-reloc-section -fstack-protector-all -D_FORTIFY_SOURCE=2 -fno-strict-overflow "$@"

0 comments on commit 2aa00f1

Please sign in to comment.
You can’t perform that action at this time.