Description
Some compilers will use the source filename as part of a symbol to make a unique symbol. MWCC will use the filename as part of the static initializer symbol __sinit_code_c
and in anonymous namespaces data__16@unnamed@code_c@
. The filename on decomp.me is code.c which is what the compiler uses. This can cause problems when matching symbols on the website which contain the filename as it will most likely differ. This also affects when functions use the --disasssmble objdump flag and try to match these special symbols (such as sinit functions) as the compiled code on decomp.me will have a different symbol.
A scratch option to specify the name of the source file to allow matching of these symbols would be great.
File name: "Game.cpp"
Example scratch: https://decomp.me/scratch/k2inX