diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-07-04 16:54:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-07-04 16:54:49 +0000 |
commit | b176e1e92a344be1f241b74f03ee00241bd5cde3 (patch) | |
tree | 93bc1829d56a4eaef62f1e237283044803dd514d /bfd/libelf.h | |
parent | 194fc93542a4d8d88ed74628d43073e6f3ad13c3 (diff) | |
download | binutils-b176e1e92a344be1f241b74f03ee00241bd5cde3.zip binutils-b176e1e92a344be1f241b74f03ee00241bd5cde3.tar.gz binutils-b176e1e92a344be1f241b74f03ee00241bd5cde3.tar.bz2 |
* libelf.h (struct elf_link_hash_table): Add needed field. Remove
saw_needed field.
* elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name
is an empty string, don't make a DT_NEEDED entry in the output
file. Record all DT_NEEDED entries found in input dynamic
objects.
(elf_link_output_extsym): Don't check saw_needed when issuing
warnings.
* elf.c (_bfd_elf_link_hash_table_init): Initialize needed, not
saw_needed.
(bfd_elf_get_needed_list): New function.
* bfd-in.h (struct bfd_elf_link_needed_list): Define.
(bfd_elf_get_needed_list): Define.
* bfd-in2.h: Rebuild.
PR 7083.
Diffstat (limited to 'bfd/libelf.h')
-rw-r--r-- | bfd/libelf.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h index 28b9c9e..98d77b2 100644 --- a/bfd/libelf.h +++ b/bfd/libelf.h @@ -144,10 +144,9 @@ 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; + /* A linked list of DT_NEEDED names found in dynamic objects + included in the link. */ + struct bfd_elf_link_needed_list *needed; }; /* Look up an entry in an ELF linker hash table. */ |