Merge branch 'for-linus' into for-next
[linux-2.6-microblaze.git] / tools / testing / selftests / sgx / test_encl.lds
1 OUTPUT_FORMAT(elf64-x86-64)
2
3 PHDRS
4 {
5         tcs PT_LOAD;
6         text PT_LOAD;
7         data PT_LOAD;
8 }
9
10 SECTIONS
11 {
12         . = 0;
13         .tcs : {
14                 *(.tcs*)
15         } : tcs
16
17         . = ALIGN(4096);
18         .text : {
19                 *(.text*)
20                 *(.rodata*)
21         } : text
22
23         . = ALIGN(4096);
24         .data : {
25                 *(.data*)
26         } : data
27
28         /DISCARD/ : {
29                 *(.comment*)
30                 *(.note*)
31                 *(.debug*)
32                 *(.eh_frame*)
33         }
34 }
35
36 ASSERT(!DEFINED(.altinstructions), "ALTERNATIVES are not supported in enclaves")
37 ASSERT(!DEFINED(.altinstr_replacement), "ALTERNATIVES are not supported in enclaves")
38 ASSERT(!DEFINED(.discard.retpoline_safe), "RETPOLINE ALTERNATIVES are not supported in enclaves")
39 ASSERT(!DEFINED(.discard.nospec), "RETPOLINE ALTERNATIVES are not supported in enclaves")
40 ASSERT(!DEFINED(.got.plt), "Libcalls are not supported in enclaves")