获得符号表的方法
nm libfoo.so
演示工程目录结构
~/projectRoot
bin
libfoo.so
script
build.sh
src
libfoogo
libforgo.go
libfoogo_test
main.go
构建脚本 build.sh
#!/bin/bash
cd ../bin
export GOPATH=~/projectRoot
go build libfoogo_test
cd …