Added a couple of hooks used during dynamic links.

This commit is contained in:
kristerw 2000-05-20 20:28:16 +00:00
parent 9eccb6b54e
commit ed8570c975
2 changed files with 29 additions and 1 deletions

View File

@ -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

View File

@ -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))