X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=bfd%2Fdoc%2Flinker.texi;fp=bfd%2Fdoc%2Flinker.texi;h=27055dc251efbc84108b916060800491e8e9c211;hp=108e3f9eb885fdd7d86f5255220f166a117e832b;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/bfd/doc/linker.texi b/bfd/doc/linker.texi index 108e3f9..27055dc 100644 --- a/bfd/doc/linker.texi +++ b/bfd/doc/linker.texi @@ -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. +