]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/libcoff-in.h
Add experimental support for --gc-sections with COFF and PE based targets.
[thirdparty/binutils-gdb.git] / bfd / libcoff-in.h
index 34e71a894478c6b90afc7ebdd46b42c2aa1f980f..83775c681b98a923fa5bd3a7e7d84dbcb26a9581 100644 (file)
@@ -265,6 +265,16 @@ struct coff_link_hash_table
   struct stab_info stab_info;
 };
 
+struct coff_reloc_cookie
+{
+  struct internal_reloc *         rels;
+  struct internal_reloc *         rel;
+  struct internal_reloc *         relend;
+  struct coff_symbol_struct *     symbols;     /* Symtab for input bfd.  */
+  bfd *                           abfd;
+  struct coff_link_hash_entry **  sym_hashes;
+};
+
 /* Look up an entry in a COFF linker hash table.  */
 
 #define coff_link_hash_lookup(table, string, create, copy, follow)     \
@@ -562,6 +572,8 @@ extern bfd_boolean _bfd_coff_link_input_bfd
 extern bfd_boolean _bfd_coff_reloc_link_order
   (bfd *, struct coff_final_link_info *, asection *,
    struct bfd_link_order *);
+extern bfd_boolean bfd_coff_gc_sections
+  (bfd *, struct bfd_link_info *);
 
 
 #define coff_get_section_contents_in_window \