Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/bfd Added a couple of hooks used during dynamic links.



details:   https://anonhg.NetBSD.org/src/rev/ca8c03840ab0
branches:  trunk
changeset: 486386:ca8c03840ab0
user:      kristerw <kristerw%NetBSD.org@localhost>
date:      Sat May 20 20:28:16 2000 +0000

description:
Added a couple of hooks used during dynamic links.

diffstat:

 gnu/dist/bfd/aout-target.h |  14 +++++++++++++-
 gnu/dist/bfd/libaout.h     |  16 ++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletions(-)

diffs (57 lines):

diff -r 4e7585c6b283 -r ca8c03840ab0 gnu/dist/bfd/aout-target.h
--- a/gnu/dist/bfd/aout-target.h        Sat May 20 20:04:12 2000 +0000
+++ b/gnu/dist/bfd/aout-target.h        Sat May 20 20:28:16 2000 +0000
@@ -341,6 +341,15 @@
 #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 @@
   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 -r 4e7585c6b283 -r ca8c03840ab0 gnu/dist/bfd/libaout.h
--- a/gnu/dist/bfd/libaout.h    Sat May 20 20:04:12 2000 +0000
+++ b/gnu/dist/bfd/libaout.h    Sat May 20 20:28:16 2000 +0000
@@ -185,6 +185,22 @@
   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))



Home | Main Index | Thread Index | Old Index