mirror of
https://github.com/intel/linux-sgx
synced 2026-06-08 14:49:32 +00:00
Linux 2.8 Open Source Gold Release.
Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>
This commit is contained in:
@@ -46,3 +46,5 @@ sgx_async_exit:
|
||||
|
||||
EENTER_EPILOG
|
||||
ret
|
||||
/* We do not need executable stack.*/
|
||||
.section .note.GNU-stack,"",@progbits
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
const int sgx_enclave_blob_length = 36864;
|
||||
|
||||
const unsigned char sgx_enclave_blob[36864] = {
|
||||
const unsigned char sgx_enclave_blob[36864] __attribute__ ((aligned(4096))) = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
|
||||
0x86,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
|
||||
@@ -34,7 +34,7 @@ SGX_SDK ?= /opt/intel/sgxsdk
|
||||
App_Objects := App/sample.o App/enclave_entry.o
|
||||
|
||||
sample: $(App_Objects)
|
||||
@$(CXX) $^ -o $@ -L. -lsgx_enclave_common
|
||||
@$(CXX) $^ -o $@ -z noexecstack -L. -lsgx_enclave_common
|
||||
@echo "LINK => $@"
|
||||
|
||||
App/%.o: App/%.cpp
|
||||
|
||||
Reference in New Issue
Block a user