summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/vax/md-static-funcs.c
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>1996-07-27 10:40:03 +0000
committerMats O Jansson <maja@cvs.openbsd.org>1996-07-27 10:40:03 +0000
commitb9f23ea56ec01d4abd015565bbd30e818243ff76 (patch)
tree6de2a5370f846fff3d5de6d5c4bfe11be20fb9c9 /gnu/usr.bin/ld/vax/md-static-funcs.c
parentb9b30dc6666e27bfd6e5ac7aa9d524f8d7f97aff (diff)
Added support for vax, all code from NetBSD.
Diffstat (limited to 'gnu/usr.bin/ld/vax/md-static-funcs.c')
-rw-r--r--gnu/usr.bin/ld/vax/md-static-funcs.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/usr.bin/ld/vax/md-static-funcs.c b/gnu/usr.bin/ld/vax/md-static-funcs.c
new file mode 100644
index 00000000000..bac3ef8f340
--- /dev/null
+++ b/gnu/usr.bin/ld/vax/md-static-funcs.c
@@ -0,0 +1,17 @@
+/* $OpenBSD: md-static-funcs.c,v 1.1 1996/07/27 10:39:58 maja Exp $ */
+/* $NetBSD: md-static-funcs.c,v 1.1 1995/10/19 13:10:17 ragge Exp $ */
+/*
+ * Called by ld.so when onanating.
+ * This *must* be a static function, so it is not called through a jmpslot.
+ */
+
+static void
+md_relocate_simple(r, relocation, addr)
+struct relocation_info *r;
+long relocation;
+char *addr;
+{
+if (r->r_relative)
+ *(long *)addr += relocation;
+}
+