<?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 Re: Re:SGX with Position Dependent Static Libraries in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1384985#M5292</link>
    <description>&lt;P&gt;Understood, thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 19:46:52 GMT</pubDate>
    <dc:creator>csoder</dc:creator>
    <dc:date>2022-05-17T19:46:52Z</dc:date>
    <item>
      <title>SGX with Position Dependent Static Libraries</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1381762#M5256</link>
      <description>&lt;P&gt;Is it possible to create an SGX application that references a static library, compiled as position-dependent code?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attempted to port a test application to an SGX application using a 3rd party porting tool, and have found I'm only able to do this successfully when all of the involved libraries are compiled using the -fPIC tag.&lt;/P&gt;
&lt;P&gt;For one of the libraries I would like my enclave functions to reference, I only have access to the .a files, so recompiling the library as PIC is not an option. Looking through SGX documentation, I have been unable to narrow down if this is a limitation of SGX, or if its perhaps just the manner in which I'm trying to port the application.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found this thread, where someone appears to have the same issue as me with a different library, but the link to the solution is broken:&amp;nbsp;&lt;A href="https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-enclave-using-libgmp/m-p/1151640" target="_blank"&gt;https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-enclave-using-libgmp/m-p/1151640&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:45:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1381762#M5256</guid>
      <dc:creator>csoder</dc:creator>
      <dc:date>2022-05-04T15:45:30Z</dc:date>
    </item>
    <item>
      <title>Re:SGX with Position Dependent Static Libraries</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1381858#M5257</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is an example of how the GMP library was ported to SGX: &lt;A href="https://github.com/intel/sgx-gmp" target="_blank"&gt;https://github.com/intel/sgx-gmp&lt;/A&gt; to be used in an enclave&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Sahira &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 May 2022 22:07:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1381858#M5257</guid>
      <dc:creator>Sahira_Intel</dc:creator>
      <dc:date>2022-05-04T22:07:36Z</dc:date>
    </item>
    <item>
      <title>Re:SGX with Position Dependent Static Libraries</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1383291#M5281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Porting a library means recompiling it from source where the -fPIC flag is mandatory. But since you only have access to .a files, your best option would be to use Gramine (&lt;A href="https://github.com/gramineproject/gramine" target="_blank"&gt;https://github.com/gramineproject/gramine&lt;/A&gt;) to wrap the whole application in an enclave. This is not necessarily the same as porting a library, but it could work for your use case. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Sahira R. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 May 2022 21:50:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1383291#M5281</guid>
      <dc:creator>Sahira_Intel</dc:creator>
      <dc:date>2022-05-10T21:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re:SGX with Position Dependent Static Libraries</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1384985#M5292</link>
      <description>&lt;P&gt;Understood, thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 19:46:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/SGX-with-Position-Dependent-Static-Libraries/m-p/1384985#M5292</guid>
      <dc:creator>csoder</dc:creator>
      <dc:date>2022-05-17T19:46:52Z</dc:date>
    </item>
  </channel>
</rss>

