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/bfd-in2.h | |
parent | 194fc93542a4d8d88ed74628d43073e6f3ad13c3 (diff) | |
download | gdb-b176e1e92a344be1f241b74f03ee00241bd5cde3.zip gdb-b176e1e92a344be1f241b74f03ee00241bd5cde3.tar.gz gdb-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/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index b197e42..1b0ba63 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -595,6 +595,14 @@ extern boolean bfd_elf32_record_link_assignment PARAMS ((bfd *, struct bfd_link_info *, const char *)); extern boolean bfd_elf64_record_link_assignment PARAMS ((bfd *, struct bfd_link_info *, const char *)); +struct bfd_elf_link_needed_list +{ + struct bfd_elf_link_needed_list *next; + bfd *by; + const char *name; +}; +extern struct bfd_elf_link_needed_list *bfd_elf_get_needed_list + PARAMS ((bfd *, struct bfd_link_info *)); extern boolean bfd_elf32_size_dynamic_sections PARAMS ((bfd *, const char *, const char *, boolean, struct bfd_link_info *, struct sec **)); |