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
Beginner
531 Views

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 Reply
Elephant
Beginner
531 Views

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

0 Kudos
Reply