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

Support demangling SYM names #13

Open
lab313ru opened this issue Nov 29, 2019 · 9 comments
Open

Support demangling SYM names #13

lab313ru opened this issue Nov 29, 2019 · 9 comments
Assignees
Labels
enhancement New feature or request SYM SYM files support wontfix This will not be worked on

Comments

@lab313ru
Copy link
Owner

subj.

@lab313ru lab313ru self-assigned this Nov 29, 2019
@lab313ru lab313ru added enhancement New feature or request wontfix This will not be worked on labels Nov 29, 2019
@lab313ru
Copy link
Owner Author

It will be a hard task, and I don't see any benefits in implementing it.

@tomsons26
Copy link

Its apparently some version of GCC mangling cause IDA can demangle these if the "Assume GCC 3.x names" is unchecked, so maybe Ghidra might support it with some setting too given it has a GCC demangler?

@lab313ru
Copy link
Owner Author

Hmm, good idea. I'll try.

@lab313ru lab313ru reopened this Nov 30, 2019
@tomsons26
Copy link

ghidra\GPL\DemanglerGnu\os\win64\demangler_gnu.exe ChangeTPage__FPUsi
outputs ChangeTPage(unsigned short *, int) so yea it's demangler can do it, seems its treated as old gnu format then.
https://github.com/NationalSecurityAgency/ghidra/blob/master/GPL/DemanglerGnu/src/demangler_gnu/c/cplus-dem.c#L270

@lab313ru
Copy link
Owner Author

Demangler works by default, as I know.

@tomsons26
Copy link

tomsons26 commented Dec 11, 2019

hm, Ghidra's code might be failing here, https://github.com/NationalSecurityAgency/ghidra/blob/master/Ghidra/Features/Base/src/main/java/ghidra/app/cmd/label/DemanglerCmd.java#L55
seems it would have to just try them all until it demangles it but it doesn't

don't see a way to pass a demangler style to DemanglerCmd either..

@astrelsky
Copy link

astrelsky commented Dec 25, 2019

I have an implementation in the works for https://github.com/beardypig/ghidra-emotionengine
If you'd like I can separate it into it's own plugin if this helps. It will handle some custom metrowerks mangled symbols too.

The only problem is an additional native process is required to set the demangler mode.

@lab313ru
Copy link
Owner Author

lab313ru commented Dec 25, 2019 via email

@astrelsky
Copy link

It would be great for me to use your demangling code in my plugin so it will be still a single plugin, not multiple. Is it possible?

On December 25, 2019 20:44:13 Andrew Strelsky @.***> wrote: I have an implementation in the works for https://github.com/beardypig/ghidra-emotionengine If you'd like I can separate it into it's own plugin if this helps. It will handle some custom metrowerks mangled symbols too.— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

I wouldn't mind. I have to clean some stuff up first. In reality it would only be temporary anyway until the issue is dealt with in ghidra.

@lab313ru lab313ru added the SYM SYM files support label Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SYM SYM files support wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants