aboutsummaryrefslogtreecommitdiff
path: root/src/qt/main.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-05-30 15:59:43 +0100
committerfanquake <fanquake@gmail.com>2022-06-11 14:55:13 +0100
commitfbae8c59a2c3f102828a91ee0dbd6017daa1f4fb (patch)
treed5dbd8b08555fda9830101b55fbfa70571bb13c9 /src/qt/main.cpp
parentb71d37da2c8c8d2a9cef020731767a6929db54b4 (diff)
downloadbitcoin-fbae8c59a2c3f102828a91ee0dbd6017daa1f4fb.tar.xz
compat: Consolidate mingw-w64 ASLR workaround for upstream libsecp changes
Achieve this by adding a MAIN_FUNCTION macro, consolidating the docs, and introducing the macro across our distributed binaries. Also update the docs to explain that anyone using binutils < 2.36 is effected by this issue. Release builds are not, because they use binutils 2.37. Currently LTS Linux distros, like Ubuntu Focal, ship with 2.34. https://packages.ubuntu.com/focal/binutils
Diffstat (limited to 'src/qt/main.cpp')
-rw-r--r--src/qt/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/main.cpp b/src/qt/main.cpp
index 6e772d58c5..38b0ac71a3 100644
--- a/src/qt/main.cpp
+++ b/src/qt/main.cpp
@@ -4,6 +4,7 @@
#include <qt/bitcoin.h>
+#include <compat.h>
#include <util/translation.h>
#include <util/url.h>
@@ -18,4 +19,7 @@ extern const std::function<std::string(const char*)> G_TRANSLATION_FUN = [](cons
};
UrlDecodeFn* const URL_DECODE = urlDecode;
-int main(int argc, char* argv[]) { return GuiMain(argc, argv); }
+MAIN_FUNCTION
+{
+ return GuiMain(argc, argv);
+}