-
Notifications
You must be signed in to change notification settings - Fork 37.7k
[0.20] rc2 Backports #18748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.20] rc2 Backports #18748
Conversation
automake is needed to build osslsigncode otherwise autogen.sh fails. Github-Pull: bitcoin#18598 Rebased-From: e44aeef
Github-Pull: bitcoin#18553 Rebased-From: 8508473
Github-Pull: bitcoin#18676 Rebased-From: b68e717
ASLR is not currently working for the bitcoin-cli.exe binary. This is due to it not having a .reloc section, which is stripped by default by the mingw-w64 ld we use for gitian builds. A good summary of issues with ld and mingw-w64 is available in this thread: https://sourceware.org/bugzilla/show_bug.cgi?id=19011. All other Windows binaries that we distribute (bitcoind, bitcoin-qt, bitcoin-wallet, bitcoin-tx and test_bitcoin) do not suffer this issue, and currently having working ASLR. This is due to them exporting (inadvertent or not) libsecp256k1 symbols, and, as a result, the .reloc section is not stripped by ld. This change is a temporary workaround, also the same one described here: https://www.kb.cert.org/vuls/id/307144/, that causes main() to be exported. Exporting a symbol will mean that the .reloc section is not stripped, and ASLR will function correctly. Github-Pull: bitcoin#18702 Rebased-From: 315a4d3
Github-Pull: bitcoin#18665 Rebased-From: b91e4ae
Github-Pull: bitcoin#18589 Rebased-From: eb37275
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK a9ca65b, locally backported and got zero diff with this PR.
There will be a few more backports, so I suggest piling them all up here and do one merge for rc2. |
That was the intent |
Github-Pull: bitcoin#18809 Rebased-From: fac0cf6
ACK 7f7548d It looks like 0.20.0 ran out of steam, to keep things moving a bit I'm going to merge this now. |
Currently backports the following to the 0.20 branch: