mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-04-07 04:50:23 +03:00
Disable function thunking when importing
Thunked functions can confuse the delinker extension into thinking that multiple symbols have the same name and lead to delinking failures (with no diagnostic, conveniently).
This commit is contained in:
parent
ac40f3e8cf
commit
a2b777d666
1 changed files with 4 additions and 0 deletions
|
|
@ -178,6 +178,10 @@ public class EnhancedImport extends GhidraScript {
|
|||
final Function f = Optional.ofNullable(getFunctionAt(addr))
|
||||
.orElse(createFunction(addr, parts[6]));
|
||||
|
||||
// Thunks trip up the delinker extension by making it see
|
||||
// duplicate symbol names
|
||||
f.setThunkedFunction(null);
|
||||
|
||||
f.setReturnType(
|
||||
makeType(parts[2], unknownTypes).orElse(Undefined4DataType.dataType),
|
||||
SourceType.USER_DEFINED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue