diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-02 21:12:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-02 21:12:37 +0000 |
commit | 96749a768287761528a05670560402a16f6839ac (patch) | |
tree | c53550a3ec7458f02da07d465c74bae3f752f499 /ldso/ldso/mips/elfinterp.c | |
parent | abdb41c778c5892d51fe92879d383eb8ba000028 (diff) |
Steven J. Hill's latest mips dynamic loader updates
Diffstat (limited to 'ldso/ldso/mips/elfinterp.c')
-rw-r--r-- | ldso/ldso/mips/elfinterp.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c new file mode 100644 index 000000000..c38a7ffa2 --- /dev/null +++ b/ldso/ldso/mips/elfinterp.c @@ -0,0 +1,49 @@ +/* Run an ELF binary on a linux system. + + Copyright (C) 1993, Eric Youngdale. + Copyright (C) 2002, Steven J. Hill (sjhill@realitydiluted.com) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + + +/* Program to load an ELF binary on a linux system, and run it. + References to symbols in sharable libraries can be resolved by either + an ELF sharable library or a linux style of shared library. */ + +/* Disclaimer: I have never seen any AT&T source code for SVr4, nor have + I ever taken any courses on internals. This program was developed using + information available through the book "UNIX SYSTEM V RELEASE 4, + Programmers guide: Ansi C and Programming Support Tools", which did + a more than adequate job of explaining everything required to get this + working. */ + + +extern int _dl_linux_resolve(void); + +void _dl_init_got(unsigned long *got, struct elf_resolve *tpnt) +{ + return; +} + +unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry) +{ + return 0; +} + +int _dl_parse_relocation_information(struct elf_resolve *tpnt, + unsigned long rel_addr, unsigned long rel_size, int type) +{ + return 1; +} |