about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorVardhan Thigle <vardhan.thigle@fortanix.com>2018-12-26 12:32:45 +0530
committerVardhan Thigle <vardhan.thigle@fortanix.com>2019-01-13 13:07:45 +0530
commit4a957b320dce39a044a05d3ad33ce4b20134c263 (patch)
treef8494c86ce3fffdc7a98b3980be2f30a2bbd7341 /src/libstd
parent75a369c5b11459baa6bf7734eeb6135998a0a7de (diff)
downloadrust-4a957b320dce39a044a05d3ad33ce4b20134c263.tar.gz
rust-4a957b320dce39a044a05d3ad33ce4b20134c263.zip
Adding Build automation for x86_64-fortanix-unknown-sgx
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/sgx/abi/entry.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstd/sys/sgx/abi/entry.S b/src/libstd/sys/sgx/abi/entry.S
index 8dad6ee976f..ac7f95d4eae 100644
--- a/src/libstd/sys/sgx/abi/entry.S
+++ b/src/libstd/sys/sgx/abi/entry.S
@@ -4,6 +4,16 @@
 .global IMAGE_BASE
 IMAGE_BASE:
 
+.section ".note.x86_64-fortanix-unknown-sgx", "", @note
+    .align 4
+    .long 1f - 0f              /* name length (not including padding) */
+    .long 3f - 2f              /* desc length (not including padding) */
+    .long 1                    /* type = NT_VERSION */
+0:  .asciz "toolchain-version" /* name */
+1:  .align 4
+2:  .long 0                    /* desc - toolchain version number, 32-bit LE */
+3:  .align 4
+
 .section .rodata
 /*  The XSAVE area needs to be a large chunk of readable memory, but since we are */
 /*  going to restore everything to its initial state (XSTATE_BV=0), only certain */