diff --git a/Sources/MachOKit/Model/DyldChain/DyldChainedImport.swift b/Sources/MachOKit/Model/DyldChain/DyldChainedImport.swift index 90e906d..1e04039 100644 --- a/Sources/MachOKit/Model/DyldChain/DyldChainedImport.swift +++ b/Sources/MachOKit/Model/DyldChain/DyldChainedImport.swift @@ -38,6 +38,10 @@ public struct DyldChainedImportGeneral: DyldChainedImportProtocol { public var nameOffset: Int { numericCast(layout.name_offset) } + + public var addend: Int { + 0 + } } public struct DyldChainedImportAddend: DyldChainedImportProtocol { @@ -55,6 +59,10 @@ public struct DyldChainedImportAddend: DyldChainedImportProtocol { public var nameOffset: Int { numericCast(layout.name_offset) } + + public var addend: Int { + numericCast(layout.addend) + } } public struct DyldChainedImportAddend64: DyldChainedImportProtocol { @@ -72,6 +80,10 @@ public struct DyldChainedImportAddend64: DyldChainedImportProtocol { public var nameOffset: Int { numericCast(layout.name_offset) } + + public var addend: Int { + numericCast(layout.addend) + } } extension DyldChainedImportGeneral { diff --git a/Sources/MachOKit/Protocol/DyldChainedImportProtocol.swift b/Sources/MachOKit/Protocol/DyldChainedImportProtocol.swift index 91417e1..54baebf 100644 --- a/Sources/MachOKit/Protocol/DyldChainedImportProtocol.swift +++ b/Sources/MachOKit/Protocol/DyldChainedImportProtocol.swift @@ -12,6 +12,7 @@ public protocol DyldChainedImportProtocol: LayoutWrapper { var libraryOrdinal: Int { get } var isWeakImport: Bool { get } var nameOffset: Int { get } + var addend: Int { get } } extension DyldChainedImportProtocol {