<?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 Reserving a section in Enclave.so in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Reserving-a-section-in-Enclave-so/m-p/1166433#M3071</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'd like to implement a binary loader inside SGX enclave. I want to reserve a section in sgx enclave via ld script so as to I can load my app dynamically into this memory region at runtime.&lt;/P&gt;

&lt;P&gt;I add my reserve section in the ld scrtipt as&lt;/P&gt;

&lt;P&gt;reserved :&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;{
    . += 0x1000;
}&lt;/PRE&gt;

&lt;P&gt;at the end of the ld script (which I copied it from the output of 'ld -verbose').&lt;/P&gt;

&lt;P&gt;Building enlave successfully via above ld script, but failed at the sgx sign process as&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;$: sgx_sign sign -key Enclave/Enclave_private.pem -enclave enclave.so -out enclave.signed.so -config Enclave/Enclave.config.xml
&amp;lt;!-- Please refer to User's Guide for the explanation of each field --&amp;gt;
&amp;lt;EnclaveConfiguration&amp;gt;
    &amp;lt;ProdID&amp;gt;0&amp;lt;/ProdID&amp;gt;
    &amp;lt;ISVSVN&amp;gt;0&amp;lt;/ISVSVN&amp;gt;
    &amp;lt;StackMaxSize&amp;gt;0x40000&amp;lt;/StackMaxSize&amp;gt;
    &amp;lt;HeapMaxSize&amp;gt;0x100000&amp;lt;/HeapMaxSize&amp;gt;
    &amp;lt;TCSNum&amp;gt;10&amp;lt;/TCSNum&amp;gt;
    &amp;lt;TCSPolicy&amp;gt;1&amp;lt;/TCSPolicy&amp;gt;
    &amp;lt;DisableDebug&amp;gt;0&amp;lt;/DisableDebug&amp;gt;
    &amp;lt;MiscSelect&amp;gt;0&amp;lt;/MiscSelect&amp;gt;
    &amp;lt;MiscMask&amp;gt;0xFFFFFFFF&amp;lt;/MiscMask&amp;gt;
&amp;lt;/EnclaveConfiguration&amp;gt;
The input enclave file is not correct.
Error happened while signing the enclave.
&lt;/PRE&gt;

&lt;P&gt;Is there any requirement for SGX enclave sections for the signning tool? I can't get any information about this from the developer manual, so hopefully I can get the answer here.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2018 05:44:43 GMT</pubDate>
    <dc:creator>Changzheng_W_Intel</dc:creator>
    <dc:date>2018-08-06T05:44:43Z</dc:date>
    <item>
      <title>Reserving a section in Enclave.so</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Reserving-a-section-in-Enclave-so/m-p/1166433#M3071</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'd like to implement a binary loader inside SGX enclave. I want to reserve a section in sgx enclave via ld script so as to I can load my app dynamically into this memory region at runtime.&lt;/P&gt;

&lt;P&gt;I add my reserve section in the ld scrtipt as&lt;/P&gt;

&lt;P&gt;reserved :&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;{
    . += 0x1000;
}&lt;/PRE&gt;

&lt;P&gt;at the end of the ld script (which I copied it from the output of 'ld -verbose').&lt;/P&gt;

&lt;P&gt;Building enlave successfully via above ld script, but failed at the sgx sign process as&lt;/P&gt;

&lt;PRE class="brush:plain; class-name:dark;"&gt;$: sgx_sign sign -key Enclave/Enclave_private.pem -enclave enclave.so -out enclave.signed.so -config Enclave/Enclave.config.xml
&amp;lt;!-- Please refer to User's Guide for the explanation of each field --&amp;gt;
&amp;lt;EnclaveConfiguration&amp;gt;
    &amp;lt;ProdID&amp;gt;0&amp;lt;/ProdID&amp;gt;
    &amp;lt;ISVSVN&amp;gt;0&amp;lt;/ISVSVN&amp;gt;
    &amp;lt;StackMaxSize&amp;gt;0x40000&amp;lt;/StackMaxSize&amp;gt;
    &amp;lt;HeapMaxSize&amp;gt;0x100000&amp;lt;/HeapMaxSize&amp;gt;
    &amp;lt;TCSNum&amp;gt;10&amp;lt;/TCSNum&amp;gt;
    &amp;lt;TCSPolicy&amp;gt;1&amp;lt;/TCSPolicy&amp;gt;
    &amp;lt;DisableDebug&amp;gt;0&amp;lt;/DisableDebug&amp;gt;
    &amp;lt;MiscSelect&amp;gt;0&amp;lt;/MiscSelect&amp;gt;
    &amp;lt;MiscMask&amp;gt;0xFFFFFFFF&amp;lt;/MiscMask&amp;gt;
&amp;lt;/EnclaveConfiguration&amp;gt;
The input enclave file is not correct.
Error happened while signing the enclave.
&lt;/PRE&gt;

&lt;P&gt;Is there any requirement for SGX enclave sections for the signning tool? I can't get any information about this from the developer manual, so hopefully I can get the answer here.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 05:44:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Reserving-a-section-in-Enclave-so/m-p/1166433#M3071</guid>
      <dc:creator>Changzheng_W_Intel</dc:creator>
      <dc:date>2018-08-06T05:44:43Z</dc:date>
    </item>
  </channel>
</rss>

