diff options
author | fanquake <fanquake@gmail.com> | 2020-04-28 17:19:00 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-04-28 17:34:22 +0800 |
commit | 9fb95ae8e3e4f10888a98fc99d704d97e2eb371f (patch) | |
tree | 331f95f6bc211ab1929f13a388f58f25fa57c005 /.cirrus.yml | |
parent | b9ba76f1c9e6564c6cf3fa6a6150e8e4d1171de3 (diff) | |
parent | cd24f37ea9168bd56b8c518ea6125e242cc4213d (diff) | |
download | bitcoin-9fb95ae8e3e4f10888a98fc99d704d97e2eb371f.tar.xz |
Merge #18779: doc: Better explain GNU ld's dislike of ld64's options
cd24f37ea9168bd56b8c518ea6125e242cc4213d doc: Better explain GNU ld's dislike of ld64's options (fanquake)
Pull request description:
There's also now more than a single option being special cased for
darwin. If we didn't special case these options they would still end
up on the link line and the binaries produced would just segfault.
I'm going to plug #17874 here as well, because adding
`-fatal-warnings` to our `AX_CHECK_LINK_FLAG` calls would
mostly prevent this sort of option mangling from happening.
An example of the warning behaviour:
```bash
echo "int main() {}" | g++ -x c++ -std=c++11 -Wl,-dead_strip -
/usr/bin/ld: warning: cannot find entry symbol ad_strip; defaulting to 0000000000001040
nm -C a.out
0000000000001000 t _init
0000000000001040 T _start
U ad_strip
```
ACKs for top commit:
dongcarl:
ACK cd24f37ea9168bd56b8c518ea6125e242cc4213d
Tree-SHA512: 8c5ff11b647e7d44dbb3f509a07caf8606a6b481c114403f0de72b3ad65395dbe9a3436e731ae1b46a823431ed23c3c6aacab8942d78629d59cd8c258c5dbf02
Diffstat (limited to '.cirrus.yml')
0 files changed, 0 insertions, 0 deletions