aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/i386/md-static-funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/ld/i386/md-static-funcs.c')
-rw-r--r--gnu/usr.bin/ld/i386/md-static-funcs.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/usr.bin/ld/i386/md-static-funcs.c b/gnu/usr.bin/ld/i386/md-static-funcs.c
new file mode 100644
index 000000000000..f52ce066f19b
--- /dev/null
+++ b/gnu/usr.bin/ld/i386/md-static-funcs.c
@@ -0,0 +1,17 @@
+/*
+ * $Id: md-static-funcs.c,v 1.2 1994/02/13 20:42:06 jkh 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;
+}
+