[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser-bundle/master] bug 10102: applying bobnomnom's patch to gitian descriptors to fix linker randomness
commit fd14de1870b38987c25eba1d3f8ca87b22f3bb8b
Author: Georg Koppen <georg@xxxxxxxxxxxxxxxx>
Date: Fri Nov 15 13:56:20 2013 +0100
bug 10102: applying bobnomnom's patch to gitian descriptors to fix linker randomness
---
gitian/descriptors/windows/gitian-firefox.yml | 1 +
gitian/descriptors/windows/gitian-tor.yml | 14 ++++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/gitian/descriptors/windows/gitian-firefox.yml b/gitian/descriptors/windows/gitian-firefox.yml
index 3085e27..a83b410 100644
--- a/gitian/descriptors/windows/gitian-firefox.yml
+++ b/gitian/descriptors/windows/gitian-firefox.yml
@@ -65,6 +65,7 @@ script: |
mkdir binutils
cd binutils
tar -xjvf ../binutils.tar.bz2
+ sed 's/= extern_rt_rel_d;/= extern_rt_rel_d;\n memset (extern_rt_rel_d, 0, PE_IDATA5_SIZE);/' -i binutils-*/ld/pe-dll.c
binutils-*/configure --prefix=/usr --target=i686-w64-mingw32 --disable-multilib
make
sudo make install
diff --git a/gitian/descriptors/windows/gitian-tor.yml b/gitian/descriptors/windows/gitian-tor.yml
index c1af6a8..836e695 100644
--- a/gitian/descriptors/windows/gitian-tor.yml
+++ b/gitian/descriptors/windows/gitian-tor.yml
@@ -25,6 +25,7 @@ remotes:
- "url": "https://github.com/nmathewson/openssl.git"
"dir": "openssl"
files:
+- "binutils.tar.bz2"
- "dzip.sh"
script: |
INSTDIR="$HOME/install"
@@ -33,8 +34,6 @@ script: |
export FAKETIME=$REFERENCE_DATETIME
export TZ=UTC
export LC_ALL=C
- export CFLAGS="-mwindows"
- export LDFLAGS="-mwindows"
# XXX: Hardening options cause the exe's to crash.. not sure why
#export CFLAGS="-mwindows -fstack-protector-all -fPIE -Wstack-protector --param ssp-buffer-size=4 -fno-strict-overflow -Wno-missing-field-initializers -Wformat-security"
#export LDFLAGS="-mwindows -Wl,--dynamicbase -Wl,--nxcompat -lssp -L/usr/lib/gcc/i686-w64-mingw32/4.6/"
@@ -45,6 +44,17 @@ script: |
mkdir -p $INSTDIR/Data/Tor/
mkdir -p $OUTDIR/
#
+ mkdir binutils
+ cd binutils
+ tar -xjvf ../binutils.tar.bz2
+ sed 's/= extern_rt_rel_d;/= extern_rt_rel_d;\n memset (extern_rt_rel_d, 0, PE_IDATA5_SIZE);/' -i binutils-*/ld/pe-dll.c
+ binutils-*/configure --prefix=/usr --target=i686-w64-mingw32 --disable-multilib
+ make
+ sudo make install
+ cd ..
+ #
+ export CFLAGS="-mwindows"
+ export LDFLAGS="-mwindows"
cd zlib
find -type f | xargs touch --date="$REFERENCE_DATETIME"
make BINARY_PATH=$INSTDIR/zlib/lib INCLUDE_PATH=$INSTDIR/zlib/include LIBRARY_PATH=$INSTDIR/zlib/lib -f win32/Makefile.gcc PREFIX=i686-w64-mingw32- $MAKEOPTS SHARED_MODE=1
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits