From 62daeb1c52c5d075b84b88abd17fb7eae4dd8cda Mon Sep 17 00:00:00 2001 From: cocay Date: Wed, 10 Jan 2024 16:18:21 +0700 Subject: [PATCH] Update edit.go: keep LC_SYMTAB --- macho-go/pkg/ios/macho/edit.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macho-go/pkg/ios/macho/edit.go b/macho-go/pkg/ios/macho/edit.go index 67a2d8a..2e7ab21 100644 --- a/macho-go/pkg/ios/macho/edit.go +++ b/macho-go/pkg/ios/macho/edit.go @@ -483,10 +483,10 @@ func (mc *MachoContext) removeSymtabCommand() { fmt.Printf("// Erase at=0x%x size=0x%x\n", start, size) mc.file.WriteAt(make([]byte, size), start) - symtab_fix.symoff = 0 - symtab_fix.nsyms = 0 - symtab_fix.stroff = 0 - symtab_fix.strsize = 0 + // symtab_fix.symoff = 0 + // symtab_fix.nsyms = 0 + // symtab_fix.stroff = 0 + // symtab_fix.strsize = 0 mc.file.Seek(ptr, io.SeekStart) mc.file.Write(symtab_fix.Serialize(mc)) break