diff --git a/bfd/linker.c b/bfd/linker.c index d31752be37..a679a32c46 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -2946,11 +2946,11 @@ already_linked_newfunc (struct bfd_hash_entry *entry ATTRIBUTE_UNUSED, struct bfd_section_already_linked_hash_entry *ret = bfd_hash_allocate (table, sizeof *ret); - ret->entry = NULL; - if (ret == NULL) return ret; + ret->entry = NULL; + return &ret->root; }