mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-02-20 02:07:02 +03:00
Tiny steps towards implementing C runtime
This commit is contained in:
parent
ccd2cd37a5
commit
c38d9b5628
6 changed files with 65 additions and 14 deletions
|
|
@ -140,11 +140,15 @@ public class MSVC7Mangle extends GhidraScript{
|
|||
/* Generate a mangled name for a function */
|
||||
final String nameRaw = f.getName(true);
|
||||
|
||||
// Special case for main()
|
||||
if (nameRaw.equals("main")) return "_main";
|
||||
// Internal symbols like intrinsics aren't mangled
|
||||
if (nameRaw.startsWith("_")) return nameRaw;
|
||||
|
||||
// Special symbols like intrinsics aren't mangled
|
||||
if (nameRaw.startsWith("__")) return nameRaw;
|
||||
// Other special cases
|
||||
switch (nameRaw) {
|
||||
case "atexit": return "_atexit";
|
||||
case "main" : return "_main" ;
|
||||
default : {}
|
||||
}
|
||||
|
||||
final ArrayList<String> dict = new ArrayList<>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue