format code
This commit is contained in:
@ -57,13 +57,13 @@ func Cli() {
|
||||
return
|
||||
} else if command == "lipo split" {
|
||||
arg := cli.Lipo.Split
|
||||
fat.FatSplit(arg.Fat)
|
||||
return
|
||||
} else if command == "lipo join" {
|
||||
fat.FatSplit(arg.Fat)
|
||||
return
|
||||
} else if command == "lipo join" {
|
||||
arg := cli.Lipo.Join
|
||||
fat.FatJoin(arg.Macho, arg.Out)
|
||||
return
|
||||
}
|
||||
fat.FatJoin(arg.Macho, arg.Out)
|
||||
return
|
||||
}
|
||||
|
||||
var pc ProgramContext
|
||||
var ofile OFile = nil
|
||||
@ -81,7 +81,7 @@ func Cli() {
|
||||
pc.signed = arg.Signed
|
||||
pc.ReadUserConfig(arg.Config)
|
||||
|
||||
case "vltk":
|
||||
case "vltk":
|
||||
arg := cli.Vltk
|
||||
ofile = NewOFile(arg.OFile)
|
||||
pc.remove_codesign = true
|
||||
|
@ -9,14 +9,14 @@ type WrapArgument struct {
|
||||
}
|
||||
|
||||
type VltkArgument struct {
|
||||
Out string `short:"o" required name:"outfile" help:"Modified Mach-O/Fat binary output file" type:"path"`
|
||||
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
||||
Out string `short:"o" required name:"outfile" help:"Modified Mach-O/Fat binary output file" type:"path"`
|
||||
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
||||
}
|
||||
|
||||
type InfoArgument struct {
|
||||
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
||||
All bool `short:"a" help:"If print all information"`
|
||||
Arch string `help:"Only print information in this arch"`
|
||||
All bool `short:"a" help:"If print all information"`
|
||||
Arch string `help:"Only print information in this arch"`
|
||||
}
|
||||
|
||||
type RemoveCodesignArgument struct {
|
||||
@ -40,17 +40,17 @@ type Addr2LineArgument struct {
|
||||
}
|
||||
|
||||
type LipoArgument struct {
|
||||
Join struct {
|
||||
Out string `short:"o" required help:"Output Fat binary file" type:"path"`
|
||||
Macho []string `arg help:"Macho binaries to join" type:"existingfile"`
|
||||
} `cmd help:"Join Macho binaries into Fat binary"`
|
||||
Split struct {
|
||||
Fat string `arg help:"Fat binary to split" type:"existingfile"`
|
||||
} `cmd help:"Split fat binary into files, named <name>_<arch>"`
|
||||
Join struct {
|
||||
Out string `short:"o" required help:"Output Fat binary file" type:"path"`
|
||||
Macho []string `arg help:"Macho binaries to join" type:"existingfile"`
|
||||
} `cmd help:"Join Macho binaries into Fat binary"`
|
||||
Split struct {
|
||||
Fat string `arg help:"Fat binary to split" type:"existingfile"`
|
||||
} `cmd help:"Split fat binary into files, named <name>_<arch>"`
|
||||
}
|
||||
|
||||
type PepeArgument struct {
|
||||
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
||||
OFile string `arg help:"Path to Mach-O/Fat binary file" type:"existingfile"`
|
||||
}
|
||||
|
||||
type Argument struct {
|
||||
@ -59,8 +59,8 @@ type Argument struct {
|
||||
Info InfoArgument `cmd help:"Show Mach-O/Fat binary information"`
|
||||
RemoveCodesign RemoveCodesignArgument `cmd aliases:"remove-signature" name:"remove-codesign" help:"Remove LC_CODE_SIGNATURE from Mach-O/Fat binary"`
|
||||
SignedBcell SignedBcellArgument `cmd name:"signed-bcell" help:"Change Protobuf<BcellFile> into Protobuf<SignedData>"`
|
||||
DisplayBcell DisplayBcellArgument `cmd name:"display-bcell" help:"Display Protobuf<BcellFile> content"`
|
||||
Addr2Line Addr2LineArgument `cmd name:"addr2line" help:"Resolve crash address from DWARF file"`
|
||||
Lipo LipoArgument `cmd help:"split Fat binary or join Mach-O binares"`
|
||||
Pepe PepeArgument `cmd help:"split Fat binary or join Mach-O binares"`
|
||||
DisplayBcell DisplayBcellArgument `cmd name:"display-bcell" help:"Display Protobuf<BcellFile> content"`
|
||||
Addr2Line Addr2LineArgument `cmd name:"addr2line" help:"Resolve crash address from DWARF file"`
|
||||
Lipo LipoArgument `cmd help:"split Fat binary or join Mach-O binares"`
|
||||
Pepe PepeArgument `cmd help:"split Fat binary or join Mach-O binares"`
|
||||
}
|
||||
|
@ -34,7 +34,6 @@ func (printer *InfoPrinter) Print() {
|
||||
fmt.Printf("Init functions at offset %s\n", &fun)
|
||||
}
|
||||
|
||||
|
||||
symbols := mc.CollectLazyBindSymbols()
|
||||
if len(symbols) > 0 {
|
||||
fmt.Println("Lazy Symbols")
|
||||
|
Reference in New Issue
Block a user