2020-11-13 00:01:31 +02:00
|
|
|
OUTPUT_FORMAT(elf64-x86-64)
|
|
|
|
|
|
|
|
PHDRS
|
|
|
|
{
|
|
|
|
tcs PT_LOAD;
|
|
|
|
text PT_LOAD;
|
|
|
|
data PT_LOAD;
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0;
|
2023-10-05 17:38:48 +02:00
|
|
|
__encl_base = .;
|
2020-11-13 00:01:31 +02:00
|
|
|
.tcs : {
|
|
|
|
*(.tcs*)
|
|
|
|
} : tcs
|
|
|
|
|
|
|
|
. = ALIGN(4096);
|
|
|
|
.text : {
|
|
|
|
*(.text*)
|
|
|
|
*(.rodata*)
|
2021-06-10 11:30:21 +03:00
|
|
|
FILL(0xDEADBEEF);
|
|
|
|
. = ALIGN(4096);
|
2020-11-13 00:01:31 +02:00
|
|
|
} : text
|
|
|
|
|
|
|
|
.data : {
|
2023-10-05 17:38:52 +02:00
|
|
|
*(.data.encl_buffer)
|
2020-11-13 00:01:31 +02:00
|
|
|
*(.data*)
|
|
|
|
} : data
|
|
|
|
|
|
|
|
/DISCARD/ : {
|
|
|
|
*(.comment*)
|
|
|
|
*(.note*)
|
|
|
|
*(.debug*)
|
|
|
|
*(.eh_frame*)
|
2023-10-05 17:38:53 +02:00
|
|
|
*(.dyn*)
|
|
|
|
*(.gnu.hash)
|
2020-11-13 00:01:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-05 17:38:50 +02:00
|
|
|
ASSERT(!DEFINED(_GLOBAL_OFFSET_TABLE_), "Libcalls through GOT are not supported in enclaves")
|