]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elfnn-aarch64.c
Treat `start_stop` symbols as having section size
[thirdparty/binutils-gdb.git] / bfd / elfnn-aarch64.c
index 5e7f0324dd89838a56eda2b87cd2b439ba52b796..c31e707a4fb8870522d2eb5a624e13fcaabf84bf 100644 (file)
@@ -6456,6 +6456,15 @@ c64_symbol_section_adjustment (struct elf_link_hash_entry *h, bfd_vma value,
        }
       return C64_SYM_LDSCRIPT_DEF;
     }
+
+  if (h->start_stop)
+    {
+      asection *s = h->u2.start_stop_section->output_section;
+      BFD_ASSERT (s != NULL);
+      *ret_sec = s;
+      return C64_SYM_LDSCRIPT_DEF;
+    }
+
   return C64_SYM_STANDARD;
 }