* elfcode.h (elf_export_symbol): Also export symbols which are

referenced by a regular file.
This commit is contained in:
Ian Lance Taylor 1994-11-13 04:51:53 +00:00
parent fd41732af2
commit e6fb0df7c0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Nov 12 23:50:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* elfcode.h (elf_export_symbol): Also export symbols which are
referenced by a regular file.
Fri Nov 11 14:29:31 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add

View File

@ -5004,7 +5004,8 @@ elf_export_symbol (h, data)
struct bfd_link_info *info = (struct bfd_link_info *) data;
if (h->dynindx == -1
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) != 0)
&& (h->elf_link_hash_flags
& (ELF_LINK_HASH_DEF_REGULAR | ELF_LINK_HASH_REF_REGULAR)) != 0)
{
if (! elf_link_record_dynamic_symbol (info, h))
{