-
Notifications
You must be signed in to change notification settings - Fork 18k
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
cmd/link: panic when adding a rsrc section in Windows PE #39658
Comments
Thanks for the report. Would it be possible to share your syso file, or perhaps any syso file that contains a rsrc section? So I'll try to reproduce it myself for debugging. Thanks. |
Sure, here it is. |
Change https://golang.org/cl/238779 mentions this issue: |
@tc-hib thanks very much for the file. CL https://golang.org/cl/238779 fixes the linker crash. Could you try that and check if the content of the rsrc is generated correctly? Thanks. |
It works, thank you very much. I've read the comments in the CL. You can create a syso file with windres or rsrc indeed. |
@tc-hib thanks for confirming! I managed to create a rsrc syso using windres on the builder machine. Thanks for the information. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
not 1.14.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to build a Windows exe file with a syso file containing a rsrc section.
What did you expect to see?
An exe file produced without error.
What did you see instead?
The text was updated successfully, but these errors were encountered: