sgx_rtld.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Copyright (C) 2014 Stony Brook University
  2. This file is part of Graphene Library OS.
  3. Graphene Library OS is free software: you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public License
  5. as published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. Graphene Library OS is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  13. /*
  14. * db_rtld.c
  15. *
  16. * This file contains utilities to load ELF binaries into the memory
  17. * and link them against each other.
  18. * The source code in this file is imported and modified from the GNU C
  19. * Library.
  20. */
  21. #include <api.h>
  22. #include <pal_internal.h>
  23. __asm__(".pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\r\n"
  24. ".byte 1\r\n"
  25. ".asciz \"" PAL_FILE("host/Linux-SGX/debugger/pal-gdb.py") "\"\r\n"
  26. ".popsection\r\n");
  27. /* This function is hooked by our gdb integration script and should be
  28. * left as is. */
  29. void load_gdb_command(const char* command) {
  30. __UNUSED(command);
  31. }