aboutsummaryrefslogtreecommitdiff
path: root/bfd/libelf.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-02-06 23:23:37 +0000
committerIan Lance Taylor <ian@airs.com>1995-02-06 23:23:37 +0000
commit59474174039062373caaee75dbcce0e6a5760968 (patch)
tree26c77b1185848048427ee558dd9db120337a5883 /bfd/libelf.h
parent1fa313e2441b0a29fc4a18452781c8f3208c14a0 (diff)
downloadgdb-59474174039062373caaee75dbcce0e6a5760968.zip
gdb-59474174039062373caaee75dbcce0e6a5760968.tar.gz
gdb-59474174039062373caaee75dbcce0e6a5760968.tar.bz2
* libelf.h (struct elf_link_hash_table): Add saw_needed field.
* elfcode.h (elf_link_add_object_symbols): Set saw_needed if DT_NEEDED seen in .dynamic section. (elf_link_output_extsym): Warn if an undefined symbol is only referenced from a dynamic object, and not making a shared object, and saw_needed is false. * elf.c (_bfd_elf_link_hash_table_init): Initialize saw_needed.
Diffstat (limited to 'bfd/libelf.h')
-rw-r--r--bfd/libelf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h
index 349f9fa..5fb58c0 100644
--- a/bfd/libelf.h
+++ b/bfd/libelf.h
@@ -144,6 +144,10 @@ struct elf_link_hash_table
/* The number of buckets in the hash table in the .hash section.
This is based on the number of dynamic symbols. */
size_t bucketcount;
+ /* Whether we are linking against a dynamic object which has a
+ DT_NEEDED entry in the .dynamic section. This may need to become
+ a list of DT_NEEDED entries. */
+ boolean saw_needed;
};
/* Look up an entry in an ELF linker hash table. */