GP-0: Fixing Mach-O DYLD_CHAINED_IMPORT_ADDEND64 weak_import value

(Closes #8023)
This commit is contained in:
Ryan Kurtz
2025-04-21 08:40:02 -04:00
parent f8ce5b4b3b
commit 39e5485389

View File

@@ -63,7 +63,7 @@ public class DyldChainedImport implements StructConverter {
case DYLD_CHAINED_IMPORT_ADDEND64: {
long ival = reader.readNextLong();
lib_ordinal = (int) (ival & 0xffff);
weak_import = ((ival >> 8) & 1) == 1;
weak_import = ((ival >> 16) & 1) == 1;
name_offset = ((ival >> 32) & 0xffffffffL);
addend = reader.readNextLong();
break;