Segfault in ld building SPEC CPU2017 527.cam4_r with -flto
authorAlan Modra <amodra@gmail.com>
Wed, 28 Aug 2019 14:50:46 +0000 (00:20 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Aug 2019 15:03:49 +0000 (00:33 +0930)
commita78fca7b57c5444ac23110c6d0f80abd966f0e90
treea2712e6a0e7279e0c8ef16ddd7e8f729ce45b1bc
parent8ae0786c30a3a8d846994d0a6e7a00646f0bcd20
Segfault in ld building SPEC CPU2017 527.cam4_r with -flto

Caused by the PR24406 fix.  unwrap_hash_lookup shouldn't be called
with link_info.wrap_hash NULL.

PR ld/24406
* plugin.c (get_symbols): Test link_info.wrap_hash before calling
unwrap_hash_lookup.
ld/ChangeLog
ld/plugin.c