Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Using tcmalloc inside Enclave

ffan01
Principiante
1.299 Vistas

Hi,

Is there any example that shows how to use the tcmalloc in sdk/gperftools/libsgx_tcmalloc.a?

I don't know how to modify the Makefile.

Thanks!

0 kudos
1 Responder
Elephant
Principiante
1.299 Vistas

Hi Fan,

Download this developer reference and then search for TCMalloc: https://download.01.org/intel-sgx/sgx-linux/2.7.1/docs/Intel_SGX_Developer_Reference_Linux_2.7.1_Open_Source.pdf

There's an example there on how you can modify your makefile.

Try:

2.Add "-Wl,--whole-archive -L sdk/gperftools/ -l:libgsgx_tcmalloc.a -Wl,--no-wholearchive" into enclave linking options in the Makefile.

- Elephant

Responder