full.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * GRUB -- GRand Unified Bootloader
  3. * Copyright (C) 2010 Free Software Foundation, Inc.
  4. *
  5. * GRUB is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * GRUB is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #include <config.h>
  19. #include <grub/dl.h>
  20. #include <grub/env.h>
  21. #include <grub/kernel.h>
  22. #include <grub/misc.h>
  23. #include <grub/emu/misc.h>
  24. #include <grub/disk.h>
  25. const int grub_no_modules = 1;
  26. void
  27. grub_register_exported_symbols (void)
  28. {
  29. }
  30. grub_err_t
  31. grub_arch_dl_check_header (void *ehdr)
  32. {
  33. (void) ehdr;
  34. return GRUB_ERR_BAD_MODULE;
  35. }
  36. grub_err_t
  37. grub_arch_dl_relocate_symbols (grub_dl_t mod, void *ehdr,
  38. Elf_Shdr *s, grub_dl_segment_t seg)
  39. {
  40. (void) mod;
  41. (void) ehdr;
  42. (void) s;
  43. (void) seg;
  44. return GRUB_ERR_BAD_MODULE;
  45. }
  46. #if !defined (__i386__) && !defined (__x86_64__)
  47. grub_err_t
  48. grub_arch_dl_get_tramp_got_size (const void *ehdr __attribute__ ((unused)),
  49. grub_size_t *tramp, grub_size_t *got)
  50. {
  51. *tramp = 0;
  52. *got = 0;
  53. return GRUB_ERR_BAD_MODULE;
  54. }
  55. #endif
  56. #ifdef GRUB_LINKER_HAVE_INIT
  57. void
  58. grub_arch_dl_init_linker (void)
  59. {
  60. }
  61. #endif