test_encl.lds 518 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. OUTPUT_FORMAT(elf64-x86-64)
  2. PHDRS
  3. {
  4. tcs PT_LOAD;
  5. text PT_LOAD;
  6. data PT_LOAD;
  7. }
  8. SECTIONS
  9. {
  10. . = 0;
  11. __encl_base = .;
  12. .tcs : {
  13. *(.tcs*)
  14. } : tcs
  15. . = ALIGN(4096);
  16. .text : {
  17. *(.text*)
  18. *(.rodata*)
  19. FILL(0xDEADBEEF);
  20. . = ALIGN(4096);
  21. } : text
  22. .data : {
  23. *(.data.encl_buffer)
  24. *(.data*)
  25. } : data
  26. /DISCARD/ : {
  27. *(.comment*)
  28. *(.note*)
  29. *(.debug*)
  30. *(.eh_frame*)
  31. *(.dyn*)
  32. *(.gnu.hash)
  33. }
  34. }
  35. ASSERT(!DEFINED(_GLOBAL_OFFSET_TABLE_), "Libcalls through GOT are not supported in enclaves")