Skip to content

Commit bc2085e

Browse files
clazissShahab Vahedi
authored andcommitted
arc: Remove the BFD_ASSERT and make safe next if-stmt
Fix for Issue #523 Signed-off-by: Claudiu Zissulescu <claziss@gmail.com>
1 parent 9c4a55b commit bc2085e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bfd/arc-got.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,10 @@ relocate_fix_got_relocs_for_got_info (struct got_entry **list_p,
379379

380380
case GOT_NORMAL:
381381
{
382-
BFD_ASSERT (h);
383-
if (h->root.type == bfd_link_hash_undefweak
384-
/* FIXME! catch the undefined situation in a test. */
385-
|| h->root.type == bfd_link_hash_undefined)
382+
if (h != NULL &&
383+
(h->root.type == bfd_link_hash_undefweak
384+
/* FIXME! catch the undefined situation in a test. */
385+
|| h->root.type == bfd_link_hash_undefined))
386386
ARC_DEBUG ("arc_info: PATCHED: NOT_PATCHED "
387387
"@ %#08lx for sym %s in got offset %#lx "
388388
"(is undefweak)\n",

0 commit comments

Comments
 (0)