Source-Changes-HG archive

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

[src/trunk]: src/gnu/dist/bfd This file will contain the MI part of netbsd a....



details:   https://anonhg.NetBSD.org/src/rev/4e7585c6b283
branches:  trunk
changeset: 486385:4e7585c6b283
user:      kristerw <kristerw%NetBSD.org@localhost>
date:      Sat May 20 20:04:12 2000 +0000

description:
This file will contain the MI part of netbsd a.out shared lib support.
For now it is just the hooks needed for ld.

diffstat:

 gnu/dist/bfd/netbsdaout.c |  59 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 59 insertions(+), 0 deletions(-)

diffs (63 lines):

diff -r 5427c8837e69 -r 4e7585c6b283 gnu/dist/bfd/netbsdaout.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/bfd/netbsdaout.c Sat May 20 20:04:12 2000 +0000
@@ -0,0 +1,59 @@
+#include "bfd.h"
+#include "sysdep.h"
+#include "libaout.h"
+
+/* Return the list of objects needed by BFD.  */
+
+/*ARGSUSED*/
+struct bfd_link_needed_list *
+bfd_netbsd_get_needed_list (abfd, info)
+     bfd *abfd;
+     struct bfd_link_info *info;
+{
+  if (aout_backend_info (abfd)->get_needed_list != NULL)
+    {
+      return (*aout_backend_info (abfd)->get_needed_list)
+             (abfd, info);
+    }
+
+  return NULL;
+}
+
+/* Record an assignment made to a symbol by a linker script.  We need
+   this in case some dynamic object refers to this symbol.  */
+
+boolean
+bfd_netbsd_record_link_assignment (output_bfd, info, name)
+     bfd *output_bfd;
+     struct bfd_link_info *info;
+     const char *name;
+{
+  if (aout_backend_info (output_bfd)->record_link_assignment != NULL)
+    {
+      return (*aout_backend_info (output_bfd)->record_link_assignment)
+             (output_bfd, info, name);
+    }
+
+  return true;
+}
+
+/* Set up the sizes and contents of the dynamic sections. This is called
+   by the NetBSD linker emulation before_allocation routine.  */
+
+boolean
+bfd_netbsd_size_dynamic_sections (output_bfd, info, sdynptr, sneedptr,
+                                srulesptr)
+     bfd *output_bfd;
+     struct bfd_link_info *info;
+     asection **sdynptr;
+     asection **sneedptr;
+     asection **srulesptr;
+{
+  if (aout_backend_info (output_bfd)->size_dynamic_sections != NULL)
+    {
+      return (*aout_backend_info (output_bfd)->size_dynamic_sections)
+             (output_bfd, info, sdynptr, sneedptr, srulesptr);
+    }
+
+  return true;
+}



Home | Main Index | Thread Index | Old Index