-
Notifications
You must be signed in to change notification settings - Fork 18.1k
cmd/link, runtime: reserve 48 bytes in stack frame for ppc64 #31738
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
Conversation
merge chunk
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Should this be linux only? @Helflym |
I don't think you need to change the whole Go stack. The Go stack is relatively independent from the C stack as far as I know. You should be able to directly use |
@Helflym Thanks for the advice. I have tried the plan(only adjust the parts of go stack) some days ago, it seemed not working. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
This PR (HEAD: 3b6ffd0) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/174317 to see it. Tip: You can toggle comments from me using the |
Message from Lynn Boger: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
Message from Lynn Boger: Patch Set 1: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
Message from Cherry Zhang: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
Message from Clément Chigot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
This PR (HEAD: 2a9abfc) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/174317 to see it. Tip: You can toggle comments from me using the |
Message from Jiang Ma: Patch Set 1: (5 comments) Dear Reviewers: Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
Message from Lynn Boger: Patch Set 2: Did you run all.bash on this patch? I tried this on a power8 linux/ppc64 RHEL 7 and got failures. Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
Message from Lynn Boger: Patch Set 2:
Clarification: I ran all.bash against patchset 1 and there were failures. It looks like several changes from patchset 1 were removed in patchset 2. Was that your intention? Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
Message from Jiang Ma: Patch Set 2:
Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
a1b0af9
to
93a79bb
Compare
4a7ed1f
to
0f992b9
Compare
Message from Carlos Eduardo Seo: Patch Set 2: Could you please rebase this against master? I could run a test on a POWER8 BE system. Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
Message from Cherry Mui: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/174317. |
C functions requires 48 bytes of space on caller stack frame for ppc64. Without this fix, a simple cgo program(build with CGO_CFLAGS="-O0") could mess the stack and finally trigger a segmentation fault.
Updates #13192