Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (30 loc) · 800 Bytes

README.golang.md

File metadata and controls

37 lines (30 loc) · 800 Bytes

Graphene-SGX Golang Support Feature

Firstly, Please follow the instructions in Graphene README file to build Graphene-SGX and then change directory to Graphene project.

1) build the preloaded libraries for symbol analysis

make -C LibOS/libs/symtab SGX=1

2) build the preloaded libraries for golang support

make -C LibOS/libs/golang SGX=1

3) download Gobyexample test code by script

cd LibOS/shim/test/go/
./setup_gobyexample
cd gobyexample.test/

4) Build example code and generate SGX signatures and tokens

please note go == 1.11.5

export GOROOT=</path/to/go>
make SGX=1
make SGX_RUN=1

5) Run a compiled example "arrays" in Graphene-SGX

SGX=1 ./pal_loader arrays

Enjoy.