fanquake
315a4d36f7
build: fix ASLR for bitcoin-cli on Windows
...
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.
2020-04-19 10:05:29 +08:00
..
2020-04-17 10:12:13 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-01-28 17:00:01 +01:00
2020-01-16 15:58:35 -05:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-28 16:59:07 +01:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-15 02:18:00 +07:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-17 12:16:42 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-17 17:17:11 -04:00
2020-02-09 07:44:29 -08:00
2020-04-17 10:12:13 -04:00
2020-04-18 22:00:26 +12:00
2020-04-16 13:33:09 -04:00
2019-10-14 13:24:54 +03:00
2019-12-30 10:42:20 +13:00
2020-01-02 11:05:36 -08:00
2020-04-16 13:33:09 -04:00
2020-03-04 14:24:19 +01:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-03-10 09:52:53 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-10-16 08:56:57 -07:00
2019-09-05 13:25:11 +12:00
2020-04-19 10:05:29 +08:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-04-17 01:09:39 +02:00
2020-04-17 01:09:39 +02:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-04-03 16:29:26 +02:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-08 14:45:27 +00:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2020-04-16 13:33:09 -04:00
2020-01-04 20:18:28 +02:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-15 15:05:18 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2020-04-10 19:38:21 -04:00
2020-03-26 17:20:28 +08:00
2020-01-28 17:01:48 +01:00
2020-01-28 17:01:48 +01:00
2020-04-01 12:49:15 +02:00
2020-04-10 19:38:21 -04:00
2019-11-21 21:13:08 +01:00
2020-04-05 01:01:13 +02:00
2020-04-05 10:46:24 +08:00
2020-04-14 07:18:12 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-08 12:35:59 +00:00
2020-04-16 13:33:09 -04:00
2020-04-10 10:12:46 -04:00
2020-03-29 11:45:46 -04:00
2019-10-29 11:30:12 +02:00
2020-03-29 11:45:46 -04:00
2020-04-10 10:12:46 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-22 20:20:45 +01:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-01-23 16:35:06 -05:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-02-06 13:24:40 +01:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-11-12 14:50:44 -08:00
2019-12-30 10:42:20 +13:00
2018-07-24 20:46:23 +01:00
2020-04-16 13:33:09 -04:00
2020-03-10 09:47:32 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-03-27 08:59:06 -04:00
2020-03-31 08:36:02 -05:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2019-12-06 10:02:08 +01:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-01-15 02:18:00 +07:00
2020-04-16 13:33:09 -04:00
2020-03-19 17:26:51 +01:00
2020-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2020-01-23 16:35:08 -05:00
2020-01-23 16:35:08 -05:00
2020-04-16 13:33:09 -04:00
2020-04-16 08:51:54 -04:00
2020-03-17 14:07:58 -04:00
2020-04-07 12:53:40 -07:00
2020-04-04 11:44:39 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00