summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-aout/md-prologue.c
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2005-01-11 06:15:19 +0000
committertrhodes <trhodes@FreeBSD.org>2005-01-11 06:15:19 +0000
commit8af8fbaa5847be92efb3b7a8a5ffab367878585d (patch)
tree421049efca411b909c72fb5535b78842417ccee3 /libexec/rtld-aout/md-prologue.c
parent57e0fb88c0bbf37dd4599054eef80d2d6d8363cb (diff)
downloadFreeBSD-src-8af8fbaa5847be92efb3b7a8a5ffab367878585d.zip
FreeBSD-src-8af8fbaa5847be92efb3b7a8a5ffab367878585d.tar.gz
Remove a.out runtime linker. It doesn't build and was removed from the
build over two years ago by peter. The binary a.out version of ld.so can be obtained from misc/compat22 or src/lib/compat/compat22. Discussed on: -arch Voted yes: jhb, ru, linimon, delphij
Diffstat (limited to 'libexec/rtld-aout/md-prologue.c')
-rw-r--r--libexec/rtld-aout/md-prologue.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/libexec/rtld-aout/md-prologue.c b/libexec/rtld-aout/md-prologue.c
deleted file mode 100644
index dae455e..0000000
--- a/libexec/rtld-aout/md-prologue.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * rtld entry pseudo code - turn into assembler and tweak it
- */
-
-#include <sys/types.h>
-#include <sys/types.h>
-#include <a.out.h>
-#include "link.h"
-#include "md.h"
-
-extern long _GOT_[];
-extern void (*rtld)();
-extern void (*binder())();
-
-void
-rtld_entry(version, crtp)
-int version;
-struct crt *crtp;
-{
- register struct link_dynamic *dp;
- register void (*f)();
-
- /* __DYNAMIC is first entry in GOT */
- dp = (struct link_dynamic *) (_GOT_[0]+crtp->crt_ba);
-
- f = (void (*)())((long)rtld + crtp->crt_ba);
- (*f)(version, crtp, dp);
-}
-
-void
-binder_entry()
-{
- extern int PC;
- struct jmpslot *sp;
- void (*func)();
-
- func = binder(PC, sp->reloc_index & 0x003fffff);
- (*func)();
-}
OpenPOWER on IntegriCloud