diff options
Diffstat (limited to 'bfd/elfnn-aarch64.c')
-rw-r--r-- | bfd/elfnn-aarch64.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 14b4057..d5c1fd5 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -2350,21 +2350,12 @@ _bfd_aarch64_create_or_find_stub_sec (asection *section, link_sec = htab->stub_group[section->id].link_sec; BFD_ASSERT (link_sec != NULL); - stub_sec = htab->stub_group[section->id].stub_sec; - + stub_sec = htab->stub_group[link_sec->id].stub_sec; if (stub_sec == NULL) { - stub_sec = htab->stub_group[link_sec->id].stub_sec; - if (stub_sec == NULL) - { - stub_sec = _bfd_aarch64_create_stub_section (link_sec, htab); - if (stub_sec == NULL) - return NULL; - htab->stub_group[link_sec->id].stub_sec = stub_sec; - } - htab->stub_group[section->id].stub_sec = stub_sec; + stub_sec = _bfd_aarch64_create_stub_section (link_sec, htab); + htab->stub_group[link_sec->id].stub_sec = stub_sec; } - return stub_sec; } |