module.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * arch/xtensa/kernel/platform.c
  3. *
  4. * Module support.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. *
  10. * Copyright (C) 2001 - 2005 Tensilica Inc.
  11. *
  12. * Chris Zankel <chris@zankel.net>
  13. *
  14. */
  15. #include <linux/module.h>
  16. #include <linux/moduleloader.h>
  17. #include <linux/elf.h>
  18. #include <linux/vmalloc.h>
  19. #include <linux/fs.h>
  20. #include <linux/string.h>
  21. #include <linux/kernel.h>
  22. #include <linux/cache.h>
  23. LIST_HEAD(module_buf_list);
  24. void *module_alloc(unsigned long size)
  25. {
  26. panic("module_alloc not implemented");
  27. }
  28. void module_free(struct module *mod, void *module_region)
  29. {
  30. panic("module_free not implemented");
  31. }
  32. int module_frob_arch_sections(Elf32_Ehdr *hdr,
  33. Elf32_Shdr *sechdrs,
  34. char *secstrings,
  35. struct module *me)
  36. {
  37. panic("module_frob_arch_sections not implemented");
  38. }
  39. int apply_relocate(Elf32_Shdr *sechdrs,
  40. const char *strtab,
  41. unsigned int symindex,
  42. unsigned int relsec,
  43. struct module *module)
  44. {
  45. panic ("apply_relocate not implemented");
  46. }
  47. int apply_relocate_add(Elf32_Shdr *sechdrs,
  48. const char *strtab,
  49. unsigned int symindex,
  50. unsigned int relsec,
  51. struct module *module)
  52. {
  53. panic("apply_relocate_add not implemented");
  54. }
  55. int module_finalize(const Elf_Ehdr *hdr,
  56. const Elf_Shdr *sechdrs,
  57. struct module *me)
  58. {
  59. panic ("module_finalize not implemented");
  60. }
  61. void module_arch_cleanup(struct module *mod)
  62. {
  63. panic("module_arch_cleanup not implemented");
  64. }
  65. struct bug_entry *module_find_bug(unsigned long bugaddr)
  66. {
  67. panic("module_find_bug not implemented");
  68. }