Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: possible linker bug when using the -T flag to set the text address #28257
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
This issues arises when the address passed via -T flag is not aligned with the address rounding quantum, that can be tuned via -R flag.
You can check the default rounding quantum for the target architecture value via -v flag:
$ GOARCH=arm go build -ldflags "-T 0x10000 -v" hello.go
@iansmith In your case you should use the following linker flags: