elfinterp.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Run an ELF binary on a linux system.
  2. Copyright (C) 1993, Eric Youngdale.
  3. Copyright (C) 2002, Steven J. Hill (sjhill@realitydiluted.com)
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. /* Program to load an ELF binary on a linux system, and run it.
  16. References to symbols in sharable libraries can be resolved by either
  17. an ELF sharable library or a linux style of shared library. */
  18. /* Disclaimer: I have never seen any AT&T source code for SVr4, nor have
  19. I ever taken any courses on internals. This program was developed using
  20. information available through the book "UNIX SYSTEM V RELEASE 4,
  21. Programmers guide: Ansi C and Programming Support Tools", which did
  22. a more than adequate job of explaining everything required to get this
  23. working. */
  24. extern int _dl_linux_resolve(void);
  25. void _dl_init_got(unsigned long *got, struct elf_resolve *tpnt)
  26. {
  27. return;
  28. }
  29. unsigned long _dl_linux_resolver(struct elf_resolve *tpnt, int reloc_entry)
  30. {
  31. return 0;
  32. }
  33. int _dl_parse_relocation_information(struct elf_resolve *tpnt,
  34. unsigned long rel_addr, unsigned long rel_size, int type)
  35. {
  36. return 1;
  37. }