bfd: Check NULL pointer before setting ref_real
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 5 May 2022 00:00:15 +0000 (17:00 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 5 May 2022 00:57:58 +0000 (17:57 -0700)
commit18e60f7c8a3a1c250c7eda31c0b9e84fc452829e
treeeed3a510150869a5054217401428a3118eecafad
parent4a947dc62f1dea1f19be350e53517f7fc3f54a81
bfd: Check NULL pointer before setting ref_real

PR ld/29086
* linker.c (bfd_wrapped_link_hash_lookup): Check NULL pointer
before setting ref_real.
bfd/linker.c