PR 33474 SEGV in init_reloc_cookie

This segfault is triggered by a tekhex input.

	PR 33474
	* elflink.c (bfd_elf_gc_sections): Don't try to parse .eh_frame
	in non-ELF input files.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 60a0a0e..ec34c8a 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -14649,6 +14649,8 @@
       asection *sec;
       struct elf_reloc_cookie cookie;
 
+      if (bfd_get_flavour (sub) != bfd_target_elf_flavour)
+	continue;
       sec = sub->sections;
       if (sec == NULL || sec->sec_info_type == SEC_INFO_TYPE_JUST_SYMS)
 	continue;