Browse Source

[Pal/Linux-SGX] pal-sgx-sign: Always output sgx.static_address

Previously, sgx.static_address was not recorded in generated
.manifest.sgx for PIE executables. The value is 0 by default, this
change only makes it explicit.
Jia Zhang 6 years ago
parent
commit
0674d1e9bc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Pal/src/host/Linux-SGX/signer/pal-sgx-sign

+ 1 - 0
Pal/src/host/Linux-SGX/signer/pal-sgx-sign

@@ -855,6 +855,7 @@ def main_sign(args):
     else:
     else:
         global enclave_heap_min
         global enclave_heap_min
         enclave_heap_min = 0
         enclave_heap_min = 0
+        manifest['sgx.static_address'] = '0'
 
 
     # Add manifest at the top
     # Add manifest at the top
     shutil.copy2(args['manifest'], args['output'])
     shutil.copy2(args['manifest'], args['output'])