/ go Public
cmd/go: -trimpath not trimming some C source file paths #58564
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
I was trying the "new" -trimpath feature and found that some system path information was inserted into the executable binary.
Most paths were trimmed successfully but some paths to C source files were not trimmed.
The problem can be seen when building this project: https://github.com/inkyblackness/imgui-go-examples
I'm not sure this is really a bug but I can't see these strings in the DWARF data (when dumped with readelf) nor do they exist as literal strings in the source.
What did you expect to see?
All system paths used during the build and included in the binary, to be trimmed.
What did you see instead?
Some system paths included in the binary have not been trimmed.
The text was updated successfully, but these errors were encountered: