We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700d46b commit f576680Copy full SHA for f576680
src/bitcoin-cli.cpp
@@ -558,7 +558,16 @@ static int CommandLineRPC(int argc, char *argv[])
558
return nRet;
559
}
560
561
+#ifdef WIN32
562
+// Export main() and ensure working ASLR on Windows.
563
+// Exporting a symbol will prevent the linker from stripping
564
+// the .reloc section from the binary, which is a requirement
565
+// for ASLR. This is a temporary workaround until a fixed
566
+// version of binutils is used for releases.
567
+__declspec(dllexport) int main(int argc, char* argv[])
568
+#else
569
int main(int argc, char* argv[])
570
+#endif
571
{
572
RegisterPrettyTerminateHander();
573
RegisterPrettySignalHandlers();
0 commit comments