Skip to content

Commit 39e5485

Browse files
committed
GP-0: Fixing Mach-O DYLD_CHAINED_IMPORT_ADDEND64 weak_import value
(Closes #8023)
1 parent f8ce5b4 commit 39e5485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/macho/commands/chained/DyldChainedImport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class DyldChainedImport implements StructConverter {
6363
case DYLD_CHAINED_IMPORT_ADDEND64: {
6464
long ival = reader.readNextLong();
6565
lib_ordinal = (int) (ival & 0xffff);
66-
weak_import = ((ival >> 8) & 1) == 1;
66+
weak_import = ((ival >> 16) & 1) == 1;
6767
name_offset = ((ival >> 32) & 0xffffffffL);
6868
addend = reader.readNextLong();
6969
break;

0 commit comments

Comments
 (0)