mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
b186571cf6
changes are for completeness, I don't think they work. There are changes to deal with the new include files. Obtained from: NetBSD (mostly)
18 lines
353 B
C
18 lines
353 B
C
/*
|
|
* $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 void
|
|
md_relocate_simple(r, relocation, addr)
|
|
struct relocation_info *r;
|
|
long relocation;
|
|
char *addr;
|
|
{
|
|
if (r->r_relative)
|
|
*(long *)addr += relocation;
|
|
}
|
|
|