diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2005-08-17 08:58:01 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2005-08-17 08:58:01 +0000 |
commit | 27198fa9f355b3ca237741ade9ba93e065c1f06c (patch) | |
tree | b767ca863c1ccee9fef669f08409bc3d6a36aa6f /bfd/cofflink.c | |
parent | 61bf9ae086ed8e0107ab376dd19659e6f1c923a0 (diff) | |
download | gdb-27198fa9f355b3ca237741ade9ba93e065c1f06c.zip gdb-27198fa9f355b3ca237741ade9ba93e065c1f06c.tar.gz gdb-27198fa9f355b3ca237741ade9ba93e065c1f06c.tar.bz2 |
bfd
* cofflink.c (_bfd_coff_generic_relocate_section): Correct
comment.
gas
* config/obj-coff.c (obj_coff_weak): Set auxiliary record
of NT weak externals to IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY.
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index a99a5b3..151b1ff 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -2937,9 +2937,11 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, Note that weak symbols without aux records are a GNU extension. FIXME: All weak externals are treated as having - characteristics IMAGE_WEAK_EXTERN_SEARCH_LIBRARY (2). - There are no known uses of the other two types of - weak externals. */ + characteristic IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY (1). + These behave as per SVR4 ABI: A library member + will resolve a weak external only if a normal + external causes the library member to be linked. + See also linker.c: generic_link_check_archive_element. */ asection *sec; struct coff_link_hash_entry *h2 = input_bfd->tdata.coff_obj_data->sym_hashes[ |