mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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.
This commit is contained in:
@@ -749,7 +749,7 @@ get_symbols (const void *handle, int nsyms, struct ld_plugin_symbol *syms,
|
||||
if (syms[n].def != LDPK_UNDEF && syms[n].def != LDPK_WEAKUNDEF)
|
||||
{
|
||||
blhe = h;
|
||||
if (blhe)
|
||||
if (blhe && link_info.wrap_hash != NULL)
|
||||
{
|
||||
/* Check if a symbol is a wrapper symbol. */
|
||||
struct bfd_link_hash_entry *unwrap
|
||||
|
||||
Reference in New Issue
Block a user