From ed8570c9753c7d0aaf108a4e0eee3a5f0e4df1ed Mon Sep 17 00:00:00 2001 From: kristerw Date: Sat, 20 May 2000 20:28:16 +0000 Subject: [PATCH] Added a couple of hooks used during dynamic links. --- gnu/dist/bfd/aout-target.h | 14 +++++++++++++- gnu/dist/bfd/libaout.h | 16 ++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/gnu/dist/bfd/aout-target.h b/gnu/dist/bfd/aout-target.h index c6faec5d0643..911ad654dd99 100644 --- a/gnu/dist/bfd/aout-target.h +++ b/gnu/dist/bfd/aout-target.h @@ -341,6 +341,15 @@ MY(set_sizes) (abfd) #ifndef MY_translate_to_native_sym_flags #define MY_translate_to_native_sym_flags 0 #endif +#ifndef MY_get_needed_list +#define MY_get_needed_list 0 +#endif +#ifndef MY_record_link_assignment +#define MY_record_link_assignment 0 +#endif +#ifndef MY_size_dynamic_sections +#define MY_size_dynamic_sections 0 +#endif static CONST struct aout_backend_data MY(backend_data) = { MY_zmagic_contiguous, @@ -357,7 +366,10 @@ static CONST struct aout_backend_data MY(backend_data) = { MY_check_dynamic_reloc, MY_finish_dynamic_link, MY_translate_from_native_sym_flags, - MY_translate_to_native_sym_flags + MY_translate_to_native_sym_flags, + MY_get_needed_list, + MY_record_link_assignment, + MY_size_dynamic_sections }; #define MY_backend_data &MY(backend_data) #endif diff --git a/gnu/dist/bfd/libaout.h b/gnu/dist/bfd/libaout.h index e43110429153..40481b720b1c 100644 --- a/gnu/dist/bfd/libaout.h +++ b/gnu/dist/bfd/libaout.h @@ -185,6 +185,22 @@ struct aout_backend_data boolean (*translate_to_native_sym_flags) PARAMS ((bfd *, asymbol *, struct external_nlist *)); + + /* Return the list of objects needed by BFD. */ + struct bfd_link_needed_list * (*get_needed_list) + PARAMS ((bfd *, struct bfd_link_info *)); + + /* Record an assignment made to a symbol by a linker script. */ + boolean (*record_link_assignment) PARAMS ((bfd *, + struct bfd_link_info *, + const char *)); + + /* Set up the sizes and contents of the dynamic sections. */ + boolean (*size_dynamic_sections) PARAMS ((bfd *, + struct bfd_link_info *, + struct sec **, + struct sec **, + struct sec **)); }; #define aout_backend_info(abfd) \ ((CONST struct aout_backend_data *)((abfd)->xvec->backend_data))