aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorJim Barlow <jim@purplerock.ca>2014-12-30 15:13:19 -0800
committerJim Barlow <jim@purplerock.ca>2014-12-30 15:13:19 -0800
commit2dc0a6ac3cdcaca3031bb5eb5a457f6a1ef0d27f (patch)
treebfd894a2c5fe4c19357bebef96c8b59af683af3e /update.sh
parentc0a8ddc163859ec7cbfe42cc163cc0a863b017f4 (diff)
parent9adc6d64588e32b6becf3c94f30c0a1b05702687 (diff)
downloadportable-2dc0a6ac3cdcaca3031bb5eb5a457f6a1ef0d27f.tar.gz
portable-2dc0a6ac3cdcaca3031bb5eb5a457f6a1ef0d27f.tar.bz2
portable-2dc0a6ac3cdcaca3031bb5eb5a457f6a1ef0d27f.zip
Merge recent upstream changes with compiler hardening
Conflicts: configure.ac
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index c49f7eb..c8ec876 100755
--- a/update.sh
+++ b/update.sh
@@ -125,10 +125,20 @@ $CP crypto/compat/ui_openssl_win.c crypto/ui
125asm_src=$libssl_src/src/crypto 125asm_src=$libssl_src/src/crypto
126gen_asm_stdout() { 126gen_asm_stdout() {
127 perl $asm_src/$2 $1 > $3.tmp 127 perl $asm_src/$2 $1 > $3.tmp
128 [[ $1 == "elf" ]] && cat <<-EOF >> $3.tmp
129 #if defined(HAVE_GNU_STACK)
130 .section .note.GNU-stack,"",%progbits
131 #endif
132 EOF
128 $MV $3.tmp $3 133 $MV $3.tmp $3
129} 134}
130gen_asm() { 135gen_asm() {
131 perl $asm_src/$2 $1 $3.tmp 136 perl $asm_src/$2 $1 $3.tmp
137 [[ $1 == "elf" ]] && cat <<-EOF >> $3.tmp
138 #if defined(HAVE_GNU_STACK)
139 .section .note.GNU-stack,"",%progbits
140 #endif
141 EOF
132 $MV $3.tmp $3 142 $MV $3.tmp $3
133} 143}
134for abi in elf macosx; do 144for abi in elf macosx; do