aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-11-13 04:51:53 +0000
committerIan Lance Taylor <ian@airs.com>1994-11-13 04:51:53 +0000
commite6fb0df7c0b32f6326769938758a5b8322f83acf (patch)
treebef76cb33a9bebc0ff3921feeaf6e4c430cca4ae /bfd/elfcode.h
parentfd41732af258074dd873cff18c95a3992c734258 (diff)
downloadgdb-e6fb0df7c0b32f6326769938758a5b8322f83acf.zip
gdb-e6fb0df7c0b32f6326769938758a5b8322f83acf.tar.gz
gdb-e6fb0df7c0b32f6326769938758a5b8322f83acf.tar.bz2
* elfcode.h (elf_export_symbol): Also export symbols which are
referenced by a regular file.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 302005a..4210e9e 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -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))
{