aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-04 16:54:49 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-04 16:54:49 +0000
commitb176e1e92a344be1f241b74f03ee00241bd5cde3 (patch)
tree93bc1829d56a4eaef62f1e237283044803dd514d /bfd/bfd-in.h
parent194fc93542a4d8d88ed74628d43073e6f3ad13c3 (diff)
downloadgdb-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-in.h')
-rw-r--r--bfd/bfd-in.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 7af736c..151e824 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -482,6 +482,9 @@ typedef struct _bfd_link_stack_heap bfd_link_stack_heap;
/* END OF PE STUFF */
+extern enum bfd_link_subsystem NT_subsystem;
+extern bfd_link_stack_heap NT_stack_heap;
+
/* Cast from const char * to char * so that caller can assign to
a char * without a warning. */
#define bfd_get_filename(abfd) ((char *) (abfd)->filename)
@@ -592,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 **));
@@ -614,11 +625,3 @@ extern boolean bfd_linux_size_dynamic_sections
PARAMS ((bfd *, struct bfd_link_info *));
/* And more from the source. */
-
-/* provide storage for subsystem, stack and heap data which may have been
- passed in on the command line. Ld puts this data into a bfd_link_info
- struct which ultimately gets passed in to the bfd. When it arrives, copy
- it to the following struct so that the data will be available in coffcode.h
- where it is needed. The typedef's used are defined in bfd.h */
-enum bfd_link_subsystem NT_subsystem;
-bfd_link_stack_heap NT_stack_heap;