Recognize files compiled by Metrowerks CodeWarrior
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:
Thanks a lot for the info. I will take a look! :)
@jacobleeharris Can you may provide an sample file to test?
Sorry, I do not have any samples I can provide however...
https://github.com/decompme/compilers/releases/tag/compilers
this has a number of PS2 and PSP compilers (including Metrowerks CodeWarrior compilers). I would have attached a simple example using one of these compilers but unfortunately, Wine hangs on compiling when using MWCCPS2.
Maybe you will have better luck compiling an example if you are on Windows. I do not have access to a windows machine/vm at this time.
Sorry, I do not have any samples I can provide however...
https://github.com/decompme/compilers/releases/tag/compilers
this has a number of PS2 and PSP compilers (including Metrowerks CodeWarrior compilers). I would have attached a simple example using one of these compilers but unfortunately, Wine hangs on compiling when using MWCCPS2.
Maybe you will have better luck compiling an example if you are on Windows. I do not have access to a windows machine/vm at this time.
I am on Ubuntu, thanks for the Samples.
Since they also used at PS2 i can try also my Adiboo PS2 game.