-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Invalid syntax when using garble to build #812
Comments
Resolved my own issue. I had a comment on the same line as my #include |
Still if it builds with go and not garble we should fix it. Can you send in your code so we can reproduce? |
Sorry for the late response, I cant provide the whole context but here is how you could recreate the issue: Assembly in go program
Comments on the same line as #include will cause an invalid syntax error when building with garble, but is fine with go build |
That is, the assembly line #include "foo.h" // bar would make garble run into an error, as we would try to parse the #include directive before we stripped comments, effectively trying to unquote the string "foo.h" // bar rather than just the included filename "foo.h" Add test cases for asm but also cgo, while at it. Fixes burrowers#812.
Thanks @coremedic - that is enough for me to reproduce. |
That is, the assembly line #include "foo.h" // bar would make garble run into an error, as we would try to parse the #include directive before we stripped comments, effectively trying to unquote the string "foo.h" // bar rather than just the included filename "foo.h" Add test cases for asm but also cgo, while at it. Fixes #812.
What version of Garble and Go are you using?
What environment are you running Garble on?
go env
OutputWhat did you do?
I have some go assembly code that I am trying to obfuscate, getting an "invalid syntax" error when building. When I build with "go build" my build works fine. Here are some relevant parts of the debug output:
The text was updated successfully, but these errors were encountered: