GP-5681: Relocating Mach-O got entries with no symbols to the EXTERNAL

block
This commit is contained in:
Ryan Kurtz
2025-05-20 13:55:49 -04:00
parent 0b2739a8fe
commit 1ea264b71a
6 changed files with 70 additions and 29 deletions
@@ -113,7 +113,7 @@ public class MachoExtractProgramBuilder extends MachoProgramBuilder {
// location to the newly exported function
Function func = funcManager.getFunctionAt(sym.getAddress());
if (func != null && func.getThunkedFunction(false) != null) {
func.setThunkedFunction(createOneByteFunction(name, exportAddr));
func.setThunkedFunction(createOneByteFunction(program, name, exportAddr));
// Remove the external location associated with the thunk function.
// After the first delete, the external location becomes an external label, which