Skip to content
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

Use dwarf 5 for Linux binaries (BinSkim) #852

Open
dagood opened this issue Jan 20, 2023 · 0 comments
Open

Use dwarf 5 for Linux binaries (BinSkim) #852

dagood opened this issue Jan 20, 2023 · 0 comments

Comments

@dagood
Copy link
Member

dagood commented Jan 20, 2023

Example BinSkim issue: https://devdiv.visualstudio.com/DevDiv/_queries/edit/1727456

https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA3004GenerateRequiredSymbolFormat

'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)
@dagood dagood changed the title Use dwarf 5 for Linux binaries Use dwarf 5 for Linux binaries (BinSkim) Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant