Linux Audio

Check our new training course

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