Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: add support for c-shared, plugin buildmodes on ppc64le #20756
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
I found the problem with c-shared. The code in runtime/rt0_linux_ppc64le.s for _rt0_ppc64le_linux_lib is incorrect because it computes the callee's r2 at the beginning of the function and then saves it onto the caller's stack. This shouldn't be done because the caller should be saving and restoring its own r2 before and after the call.
Once this is corrected then c-shared works for ppc64le and can be enabled.