<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic can Enclave link librarys which is not in SDK/include? in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183257#M3617</link>
    <description>&lt;P&gt;Hello, I want to use the third-party libraries in enclave,Can I&amp;nbsp;link the &lt;SPAN style="font-size: 13.008px;"&gt;t&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;hird-party&amp;nbsp;&lt;/SPAN&gt;static library(.a file) when compile enclave to generate enclave.so?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 03:19:18 GMT</pubDate>
    <dc:creator>dai_c_</dc:creator>
    <dc:date>2018-01-16T03:19:18Z</dc:date>
    <item>
      <title>can Enclave link librarys which is not in SDK/include?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183257#M3617</link>
      <description>&lt;P&gt;Hello, I want to use the third-party libraries in enclave,Can I&amp;nbsp;link the &lt;SPAN style="font-size: 13.008px;"&gt;t&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;hird-party&amp;nbsp;&lt;/SPAN&gt;static library(.a file) when compile enclave to generate enclave.so?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 03:19:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183257#M3617</guid>
      <dc:creator>dai_c_</dc:creator>
      <dc:date>2018-01-16T03:19:18Z</dc:date>
    </item>
    <item>
      <title>Yes, and please make sure all</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183258#M3618</link>
      <description>&lt;P&gt;Yes, and please make sure all the library's dependencies are also included statically&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 14:37:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183258#M3618</guid>
      <dc:creator>Hoang_N_Intel</dc:creator>
      <dc:date>2018-01-16T14:37:31Z</dc:date>
    </item>
    <item>
      <title>OK,Thank you very much!</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183259#M3619</link>
      <description>&lt;P&gt;OK,Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 06:52:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183259#M3619</guid>
      <dc:creator>dai_c_</dc:creator>
      <dc:date>2018-01-17T06:52:07Z</dc:date>
    </item>
    <item>
      <title>I have created a .h header</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183260#M3620</link>
      <description>&lt;DIV&gt;&lt;SPAN style="font-size: 1em;"&gt;Suppose I have created a (r&lt;/SPAN&gt;osheader&lt;SPAN style="font-size: 1em;"&gt;.h) header file in /home/&lt;/SPAN&gt;roshan&lt;SPAN style="font-size: 1em;"&gt;/&lt;/SPAN&gt;mylib&lt;SPAN style="font-size: 1em;"&gt;/include directory&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;The static library(roslib.a) in /home/roshan/mylib&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 1em;"&gt;I wanted to use this library inside the enclave, what I should I write in my makefile, I mean here:&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;A snippet of the makefile.&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;Enclave_Cpp_Files := Enclave/Enclave.cpp Enclave/Sealing/Sealing.cpp
# Enclave_Include_Paths := -IInclude -IEnclave -I$(SGX_SDK)/include -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/stlport
Enclave_Include_Paths := -IEnclave -I$(SGX_SDK)/include -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/stlport

Enclave_C_Flags := $(SGX_COMMON_CFLAGS) -nostdinc -fvisibility=hidden -fpie -fstack-protector $(Enclave_Include_Paths)
Enclave_Cpp_Flags := $(Enclave_C_Flags) -std=c++03 -nostdinc++
Enclave_Link_Flags := $(SGX_COMMON_CFLAGS) -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L$(SGX_LIBRARY_PATH) \
-Wl,--whole-archive -l$(Trts_Library_Name) -Wl,--no-whole-archive \
-Wl,--start-group -lsgx_tstdc -lsgx_tstdcxx -l$(Crypto_Library_Name) -l$(Service_Library_Name) -Wl,--end-group \
-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \
-Wl,-pie,-eenclave_entry -Wl,--export-dynamic  \
-Wl,--defsym,__ImageBase=0&lt;/PRE&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 Jan 2018 14:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183260#M3620</guid>
      <dc:creator>Roshan_Mehta</dc:creator>
      <dc:date>2018-01-21T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Hi Roshan:</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183261#M3621</link>
      <description>&lt;P&gt;Hi &lt;A href="https://software.intel.com/en-us/user/1654425" style="font-size: 11px; background-color: rgb(238, 238, 238);"&gt;Roshan&lt;/A&gt;:&lt;/P&gt;

&lt;P&gt;You can add "-L&lt;SPAN style="font-size: 12px;"&gt;/home/roshan/mylib" in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;SGX_COMMON_CFLAGS and then add "-l/&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;roslib.a" after "&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; background-color: rgb(248, 248, 248);"&gt;-Wl,--whole-archive -l$(Trts_Library_Name)". Have a try.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#000000" face="Consolas, Bitstream Vera Sans Mono, Courier New, Courier, monospace"&gt;&lt;SPAN style="background-color: rgb(248, 248, 248);"&gt;Regards&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#000000" face="Consolas, Bitstream Vera Sans Mono, Courier New, Courier, monospace"&gt;&lt;SPAN style="background-color: rgb(248, 248, 248);"&gt;you&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 01:58:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183261#M3621</guid>
      <dc:creator>you_w_</dc:creator>
      <dc:date>2018-01-22T01:58:23Z</dc:date>
    </item>
    <item>
      <title>I think you  should add</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183262#M3622</link>
      <description>&lt;DIV class="line alt1" style="font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; min-height: auto !important;"&gt;I think you &amp;nbsp;should add include path and link flags to use your static lib&lt;/DIV&gt;

&lt;DIV class="line alt1" style="font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; min-height: auto !important;"&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px;"&gt;Enclave_Include_Paths := -IEnclave -I$(SGX_SDK)/include -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/stlport -I /home/roshan/mylib/include&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; min-height: auto !important;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; min-height: auto !important;"&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px;"&gt;and the link flags as follows:&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; min-height: auto !important;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV class="line alt1" style="font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; min-height: auto !important;"&gt;
	&lt;DIV&gt;Enclave_Link_Flags := $(SGX_COMMON_CFLAGS) -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L$(SGX_LIBRARY_PATH)&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px;"&gt;-L /home/roshan/mylib \&lt;/SPAN&gt;&lt;/DIV&gt;

	&lt;DIV&gt;-Wl,--whole-archive -l$(Trts_Library_Name) -Wl,--no-whole-archive \&lt;/DIV&gt;

	&lt;DIV&gt;-Wl,--start-group -lsgx_tstdc -lsgx_tstdcxx -l$(Crypto_Library_Name) -l$(Service_Library_Name) &lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px;"&gt;-l roslib&lt;/SPAN&gt;&amp;nbsp;-Wl,--end-group \&lt;/DIV&gt;

	&lt;DIV&gt;-Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \&lt;/DIV&gt;

	&lt;DIV&gt;-Wl,-pie,-eenclave_entry -Wl,--export-dynamic &amp;nbsp;\&lt;/DIV&gt;

	&lt;DIV&gt;-Wl,--defsym,__ImageBase=0 \&lt;/DIV&gt;

	&lt;DIV&gt;-Wl,--version-script=Enclave/Enclave.lds&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Jan 2018 02:03:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183262#M3622</guid>
      <dc:creator>dai_c_</dc:creator>
      <dc:date>2018-01-22T02:03:48Z</dc:date>
    </item>
    <item>
      <title>Quote:Hoang Nguyen (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183263#M3623</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Hoang Nguyen (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Yes, and please make sure all the library's dependencies are also included statically&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hello,when I want to use SGX to protect a part of project, if I move the code in enclave,the workload is heavy,and can I compile the part code into static lib,and my enclave link the static lib,can this way achieves the same goal as&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;move the code in enclave?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 07:52:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/can-Enclave-link-librarys-which-is-not-in-SDK-include/m-p/1183263#M3623</guid>
      <dc:creator>dai_c_</dc:creator>
      <dc:date>2018-01-23T07:52:17Z</dc:date>
    </item>
  </channel>
</rss>

