Skip to content

Commit

Permalink
[dev.boringcrypto] crypto/internal/boring: clear "executable stack" b…
Browse files Browse the repository at this point in the history
…it from syso

Change-Id: Ie9dd13f3ae78a423a231f47e746a38f96768b93c
Reviewed-on: https://go-review.googlesource.com/58830
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
rsc committed Aug 25, 2017
1 parent d1351fb commit 7ff9fca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/internal/boring/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ mkdir $chroot/godriver
cp ../goboringcrypto.h $chroot/godriver

sudo http_proxy=$http_proxy chroot $chroot /root_setup_in_chroot.sh
sudo chroot --userspec=$USER:$USER $chroot /build_in_chroot.sh
sudo chroot --userspec=$(id -u):$(id -g) $chroot /build_in_chroot.sh
cp $chroot/godriver/goboringcrypto_linux_amd64.syso ..
sha256sum ../goboringcrypto_linux_amd64.syso
echo DONE
2 changes: 2 additions & 0 deletions src/crypto/internal/boring/build/build_in_chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ __umodti3:
xorl %ecx, %ecx
movl %ecx, 0(%ecx)
jmp 1b
.section .note.GNU-stack,"",@progbits
EOF
clang-4.0 -c -o umod.o umod.s

Expand Down
Binary file modified src/crypto/internal/boring/goboringcrypto_linux_amd64.syso
Binary file not shown.

0 comments on commit 7ff9fca

Please sign in to comment.