This saves roughly half a megabyte in binary size, in the non-GUI binaries:
| Binary | master (MB) | PR (MB) |
|---|---|---|
| bitcoin | 2.15 | 1.67 |
| bitcoin-cli | 8.20 | 7.72 |
| bitcoin-qt | 43.87 | 43.87 |
| bitcoin-tx | 4.93 | 4.45 |
| bitcoin-util | 4.52 | 4.04 |
| bitcoin-wallet | 9.26 | 8.77 |
| bitcoind | 17.75 | 17.27 |
The first commit is pulled out of #25573.