]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - bfd/doc/linker.texi
Imported binutils-2.20
[msp430-binutils.git] / bfd / doc / linker.texi
index 108e3f9eb885fdd7d86f5255220f166a117e832b..27055dc251efbc84108b916060800491e8e9c211 100644 (file)
@@ -110,9 +110,9 @@ bfd_link_hash_table}.
 
 Sometimes the @code{_bfd_link_add_symbols} function must store
 some information in the hash table entry to be used by the
-@code{_bfd_final_link} function.  In such a case the @code{creator}
-field of the hash table must be checked to make sure that the
-hash table was created by an object file of the same format.
+@code{_bfd_final_link} function.  In such a case the output bfd
+xvec must be checked to make sure that the hash table was
+created by an object file of the same format.
 
 The @code{_bfd_final_link} routine must be prepared to handle a
 hash entry without any extra information added by the
@@ -124,7 +124,7 @@ initialized to some sort of null value by the hash table entry
 initialization function.
 
 See @code{ecoff_link_add_externals} for an example of how to
-check the @code{creator} field before saving information (in this
+check the output bfd before saving information (in this
 case, the ECOFF external symbol debugging information) in a
 hash table entry.
 
@@ -379,3 +379,34 @@ or final link.
 
 @end example
 
+@findex bfd_generic_define_common_symbol
+@subsubsection @code{bfd_generic_define_common_symbol}
+@strong{Synopsis}
+@example
+bfd_boolean bfd_generic_define_common_symbol
+   (bfd *output_bfd, struct bfd_link_info *info,
+    struct bfd_link_hash_entry *h);
+@end example
+@strong{Description}@*
+Convert common symbol @var{h} into a defined symbol.
+Return TRUE on success and FALSE on failure.
+@example
+#define bfd_define_common_symbol(output_bfd, info, h) \
+       BFD_SEND (output_bfd, _bfd_define_common_symbol, (output_bfd, info, h))
+
+@end example
+
+@findex bfd_find_version_for_sym 
+@subsubsection @code{bfd_find_version_for_sym }
+@strong{Synopsis}
+@example
+struct bfd_elf_version_tree * bfd_find_version_for_sym
+   (struct bfd_elf_version_tree *verdefs,
+    const char *sym_name, bfd_boolean *hide);
+@end example
+@strong{Description}@*
+Search an elf version script tree for symbol versioning
+info and export / don't-export status for a given symbol.
+Return non-NULL on success and NULL on failure; also sets
+the output @samp{hide} boolean parameter.
+