Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
893 stars 199 forks source link

Symbols not showing in symbols view #3063

Closed Kharos102 closed 2 years ago

Kharos102 commented 2 years ago

Binary Ninja Version: 3.0.3337-dev Personal, 7daa28e8 Platform: Windows 11 Version 2009

PE64 binary compiled by rust for ARM64 with debug symbols will have the symbols shown in HLIL view, but not in Symbols view (meaning I can't search for the symbol).

I've attached a screenshot showing how in HLIL you can see the functions with actual symbolic names in HLIL view, but these names don't show in Symbol view (note that it does in the Stable branch of binja!). binja2

plafosse commented 2 years ago

If you right-click "Show Mangled Names" does it show up? image

Kharos102 commented 2 years ago

If you right-click "Show Mangled Names" does it show up? image

No it does not.

If I right-click and press "Show Data Variables -> Local" it shows a little more, but not everything.

mangled

psifertex commented 2 years ago

Can you share the binary?

Kharos102 commented 2 years ago

Here I've attached a built "kernel.exe" from this project: https://github.com/gamozolabs/chocolate_milk

It is a rust-based x64 PE32+ binary, symbols/functions like "_ZN6kernel5panic19attempt_soft_reboot17h0ef4bbe5067610eeE" don't show up in Symbols view, but they do in HLIL.

kernel.zip

psifertex commented 2 years ago

Hah! I blame Falk! (Kidding, just funny to see it showing up from one of his projects).

Thanks.

psifertex commented 2 years ago

This actually looks like a much broader regression rather than anything related to rust caused by some of the recent performance improvements, thanks for pointing it out. If you want to go back to a prior version, dev builds before 3291 do not exhibit this issue (you may have to enable the show all versions setting to see it in your update list).

D0ntPanic commented 2 years ago

Fixed in build 3344