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

Recognize files compiled by Metrowerks CodeWarrior #117

Open
jacobleeharris opened this issue Nov 24, 2024 · 1 comment
Open

Recognize files compiled by Metrowerks CodeWarrior #117

jacobleeharris opened this issue Nov 24, 2024 · 1 comment

Comments

@jacobleeharris
Copy link

DIE incorrectly recognizes a MWCC-compiled binary as compiled by GCC.

One method of identifying a MWCC-compiled binary is to check the .comment section which has the string
"MW CodeWarrior".

In stripped binaries, this is unfortunately not available. Another method of identifying MWCC is that MWCC uses a single section binary with the default linker script. Additionally, the last method I know of to detect MWCC is that MWCC uses a custom padding for executables.

As MWCC is a proprietary compiler, I unfortunately do not have access to any executables I could redistribute myself.

Here is an image of a MWCC-compiled executable being incorrectly designated as GCC:
MWCC Binary in DIE

@horsicq
Copy link
Owner

horsicq commented Nov 25, 2024

Thanks a lot for the info. I will take a look! :)

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

2 participants