Merge from vendor branch OPENSSL:
[dragonfly.git] / libexec / rtld-aout / i386 / md-static-funcs.c
1 /*
2  * $FreeBSD: src/libexec/rtld-aout/i386/md-static-funcs.c,v 1.7 1999/08/28 00:10:07 peter Exp $
3  * $DragonFly: src/libexec/rtld-aout/i386/Attic/md-static-funcs.c,v 1.2 2003/06/17 04:27:08 dillon Exp $
4  *
5  * Called by ld.so when onanating.
6  * This *must* be a static function, so it is not called through a jmpslot.
7  */
8
9 static void
10 md_relocate_simple(r, relocation, addr)
11 struct relocation_info  *r;
12 long                    relocation;
13 char                    *addr;
14 {
15         if (r->r_relative)
16                 *(long *)addr += relocation;
17 }
18