1 /* $NetBSD: md-prologue.c,v 1.2 1996/07/03 03:31:56 thorpej Exp $ */
4 * rtld entry pseudo code - turn into assembler and tweak it
13 extern void (*rtld
)();
14 extern void (*binder())();
17 rtld_entry(version
, crtp
)
21 register struct link_dynamic
*dp
;
24 /* __DYNAMIC is first entry in GOT */
25 dp
= (struct link_dynamic
*) (_GOT_
[0]+crtp
->crt_ba
);
27 f
= (void (*)())((long)rtld
+ crtp
->crt_ba
);
28 (*f
)(version
, crtp
, dp
);
38 func
= binder(PC
, sp
->reloc_index
& 0x003fffff);