New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.1.3 定义字符串变量,解决pkgpath.NameData: missing Go type information for global symbol: size 8 错误存在问题 #521
Comments
I apply the above change, and run it.
on x86_64:
So there are some difference between mips64le and X86_64. |
汇编不跨平台太正常了 |
我在 go 1.17 发现 string 第二种写法也需要加 NOPTR 了 |
对于此类版本兼容性问题,是否应该对内容进行修订,直接删除新版本不再兼容的写法或者在文中标注该写法支持的版本? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我发现只需要在pkg.go 文件里面加入
var NameData [8]byte
就可以了,而不需要其他的修改,具体修改如下:https://github.com/chai2010/advanced-go-programming-book/blob/master/ch3-asm/ch3-01-basic.md
The text was updated successfully, but these errors were encountered: