summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-aout/i386/md-static-funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rtld-aout/i386/md-static-funcs.c')
-rw-r--r--libexec/rtld-aout/i386/md-static-funcs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/rtld-aout/i386/md-static-funcs.c b/libexec/rtld-aout/i386/md-static-funcs.c
index 64491e3..8a672ed 100644
--- a/libexec/rtld-aout/i386/md-static-funcs.c
+++ b/libexec/rtld-aout/i386/md-static-funcs.c
@@ -1,16 +1,17 @@
/*
- * $Id: md-static-funcs.c,v 1.2 1994/02/13 20:42:06 jkh Exp $
+ * $Id: md-static-funcs.c,v 1.3 1995/11/02 18:47:55 nate Exp $
*
* Called by ld.so when onanating.
* This *must* be a static function, so it is not called through a jmpslot.
*/
-static inline void
+static void
md_relocate_simple(r, relocation, addr)
struct relocation_info *r;
long relocation;
char *addr;
{
- *(long *)addr += relocation;
+ if (r->r_relative)
+ *(long *)addr += relocation;
}
OpenPOWER on IntegriCloud