Unverified Commit 17317b41 authored by boklm's avatar boklm
Browse files

mingw-w64: Add hardened wrappers

parent 6c858b32
......@@ -56,6 +56,11 @@ mkdir -p $distdir/gcclibs
cp i686-w64-mingw32/libssp/.libs/libssp-0.dll $distdir/gcclibs
cp i686-w64-mingw32/libgcc/shlib/libgcc_s_sjlj-1.dll $distdir/gcclibs
mkdir -p $distdir/helpers
mv $rootdir/i686-w64-mingw32-g++ $rootdir/i686-w64-mingw32-gcc \
$rootdir/i686-w64-mingw32-ld $distdir/helpers/
chmod +x $distdir/helpers/*
cd /var/tmp/dist
[% c('tar', {
tar_src => [ project ],
......
......@@ -14,11 +14,14 @@ var:
setup: |
mkdir -p /var/tmp/dist
tar -C /var/tmp/dist -xf [% c("compiler_tarfile") %]
export PATH="/var/tmp/dist/mingw-w64/bin:$PATH"
gcclibs=/var/tmp/dist/mingw-w64/gcclibs
export PATH="/var/tmp/dist/mingw-w64/helpers:/var/tmp/dist/mingw-w64/bin:$PATH"
export gcclibs=/var/tmp/dist/mingw-w64/gcclibs
input_files:
- URL: 'https://ftp.gnu.org/gnu/gcc/gcc-[% c("var/gcc_version") %]/gcc-[% c("var/gcc_version") %].tar.bz2'
sha256sum: b7dafdf89cbb0e20333dbf5b5349319ae06e3d1a30bf3515b5488f7e89dca5ad
- name: binutils
project: binutils
- filename: i686-w64-mingw32-g++
- filename: i686-w64-mingw32-gcc
- filename: i686-w64-mingw32-ld
- project: docker-image
#!/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 "$@"
#!/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 "$@"
#!/bin/sh
# Hardened mingw gcc wrapper
/var/tmp/dist/mingw-w64/bin/i686-w64-mingw32-ld --dynamicbase --nxcompat --enable-reloc-section -lssp -L$gcclibs "$@"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment