Skip to content

Commit

Permalink
Merge pull request #174 from p-x9/feature/exported-symbol-public
Browse files Browse the repository at this point in the history
Make properties public in `ExportedSymbol`
  • Loading branch information
p-x9 authored Jan 31, 2025
2 parents 8d62f57 + 1709b77 commit 96fe693
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/MachOKit/Model/ExportedSymbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ public struct ExportedSymbol {
/// Symbol offset from start of file (`MachOFile`)
public var offset: Int?

var flags: ExportSymbolFlags
public var flags: ExportSymbolFlags

var ordinal: UInt?
var importedName: String?
public var ordinal: UInt?
public var importedName: String?

var stub: UInt?
var resolverOffset: UInt?
public var stub: UInt?
public var resolverOffset: UInt?
}

extension ExportedSymbol {
// [dyld implementation](https://github.com/apple-oss-distributions/dyld/blob/66c652a1f1f6b7b5266b8bbfd51cb0965d67cc44/common/MachOLoaded.cpp#L258)
func resolver(for machO: MachOImage) -> (@convention(c) () -> UInt)? {
public func resolver(for machO: MachOImage) -> (@convention(c) () -> UInt)? {
guard let resolverOffset else { return nil }
return autoBitCast(
machO.ptr.advanced(by: numericCast(resolverOffset))
Expand Down

0 comments on commit 96fe693

Please sign in to comment.