diff --git a/demos/golang/README.md b/demos/golang/README.md index 7f52fa44..ad999847 100644 --- a/demos/golang/README.md +++ b/demos/golang/README.md @@ -9,7 +9,7 @@ occlum-go get -u -v github.com/gin-gonic/gin Step 2: Build the Golang web server using the Occlum Golang toolchain(i.e., `occlum-go`) ``` -occlum-go build -o web_server -buildmode=pie ./web_server.go +occlum-go build -o web_server ./web_server.go ``` Step 3: You can run the web server demo on Occlum via diff --git a/tools/toolchains/golang/build.sh b/tools/toolchains/golang/build.sh index 8c64a15b..a404ec85 100755 --- a/tools/toolchains/golang/build.sh +++ b/tools/toolchains/golang/build.sh @@ -16,8 +16,8 @@ cd ${BUILD_DIR} # Download Golang git clone https://github.com/golang/go . -# Swtich to Golang 1.13.4 -git checkout -b go1.13.4 tags/go1.13.4 +# Swtich to Golang 1.13.7 +git checkout -b go1.13.7 tags/go1.13.7 # Apply the patch to adapt Golang to Occlum git apply ${THIS_DIR}/0001-adapt-golang-to-occlum-libos.patch @@ -30,7 +30,8 @@ mv ${BUILD_DIR} ${INSTALL_DIR} cat > ${INSTALL_DIR}/bin/occlum-go <