You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'goboringcrypto_linux_amd64.syso' is using debugging dwarf version '4'. The dwarf version 5 contains more information and should be used. To enable the debugging version 5 use '-gdwarf-5'.
Strangely, BinSkim only detects dwarf 4 in src\crypto\internal\boring\goboringcrypto_linux_amd64.syso, not the binaries we actually build. But our binaries do use version 4:
$ llvm-dwarfdump -r 1 go/bin/go | head | grep Compile
0x00000000: Compile Unit: length = 0x00000b85, format = DWARF32, version = 0x0004, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000b89)
The text was updated successfully, but these errors were encountered:
dagood
changed the title
Use dwarf 5 for Linux binaries
Use dwarf 5 for Linux binaries (BinSkim)
Feb 13, 2023
Example BinSkim issue: https://devdiv.visualstudio.com/DevDiv/_queries/edit/1727456
https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA3004GenerateRequiredSymbolFormat
Strangely, BinSkim only detects dwarf 4 in
src\crypto\internal\boring\goboringcrypto_linux_amd64.syso
, not the binaries we actually build. But our binaries do use version 4:The text was updated successfully, but these errors were encountered: