2 * rtld entry pseudo code - turn into assembler and tweak it
12 extern void (*rtld)();
13 extern void (*binder())();
16 rtld_entry(version, crtp)
20 register struct link_dynamic *dp;
23 /* __DYNAMIC is first entry in GOT */
24 dp = (struct link_dynamic *) (_GOT_[0]+crtp->crt_ba);
26 f = (void (*)())((long)rtld + crtp->crt_ba);
27 (*f)(version, crtp, dp);
37 func = binder(PC, sp->reloc_index & 0x003fffff);