Kaynağa Gözat

[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 yıl önce
ebeveyn
işleme
0674d1e9bc
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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:
         global enclave_heap_min
         enclave_heap_min = 0
+        manifest['sgx.static_address'] = '0'
 
     # Add manifest at the top
     shutil.copy2(args['manifest'], args['output'])