macho/macho-go/internal/wrapper/action/remove_init_pointer.go

21 lines
404 B
Go
Raw Permalink Normal View History

2023-05-31 16:17:03 +07:00
package action
import (
. "ios-wrapper/internal/wrapper/ofile"
)
type removeInitPointer struct{}
func (action *removeInitPointer) withMacho(mf *MachoFile) error {
mf.Context().RemoveInitFunctions()
return nil
}
func (action *removeInitPointer) withFat(ff *FatFile) error {
return defaultWithFat(action, ff)
}
func NewRemoveInitPointerAction() *removeInitPointer {
return &removeInitPointer{}
}