mirror of
https://github.com/wader/fq.git
synced 2024-11-28 03:02:55 +03:00
macho: discard lc_ and lowercase command names
This commit is contained in:
parent
2021b05408
commit
efdd0bf5e8
@ -238,58 +238,58 @@ const (
|
||||
)
|
||||
|
||||
var loadCommands = scalar.UToSymStr{
|
||||
LC_REQ_DYLD: "LC_REQ_DYLD",
|
||||
LC_SEGMENT: "LC_SEGMENT",
|
||||
LC_SYMTAB: "LC_SYMTAB",
|
||||
LC_SYMSEG: "LC_SYMSEG",
|
||||
LC_THREAD: "LC_THREAD",
|
||||
LC_UNIXTHREAD: "LC_UNIXTHREAD",
|
||||
LC_LOADFVMLIB: "LC_LOADFVMLIB",
|
||||
LC_IDFVMLIB: "LC_IDFVMLIB",
|
||||
LC_IDENT: "LC_IDENT",
|
||||
LC_FVMFILE: "LC_FVMFILE",
|
||||
LC_PREPAGE: "LC_PREPAGE",
|
||||
LC_DYSYMTAB: "LC_DYSYMTAB",
|
||||
LC_LOAD_DYLIB: "LC_LOAD_DYLIB",
|
||||
LC_ID_DYLIB: "LC_ID_DYLIB",
|
||||
LC_LOAD_DYLINKER: "LC_LOAD_DYLINKER",
|
||||
LC_ID_DYLINKER: "LC_ID_DYLINKER",
|
||||
LC_PREBOUND_DYLIB: "LC_PREBOUND_DYLIB",
|
||||
LC_ROUTINES: "LC_ROUTINES",
|
||||
LC_SUB_FRAMEWORK: "LC_SUB_FRAMEWORK",
|
||||
LC_SUB_UMBRELLA: "LC_SUB_UMBRELLA",
|
||||
LC_SUB_CLIENT: "LC_SUB_CLIENT",
|
||||
LC_SUB_LIBRARY: "LC_SUB_LIBRARY",
|
||||
LC_TWOLEVEL_HINTS: "LC_TWOLEVEL_HINTS",
|
||||
LC_PREBIND_CKSUM: "LC_PREBIND_CKSUM",
|
||||
LC_LOAD_WEAK_DYLIB: "LC_LOAD_WEAK_DYLIB",
|
||||
LC_SEGMENT_64: "LC_SEGMENT_64",
|
||||
LC_ROUTINES_64: "LC_ROUTINES_64",
|
||||
LC_UUID: "LC_UUID",
|
||||
LC_RPATH: "LC_RPATH",
|
||||
LC_CODE_SIGNATURE: "LC_CODE_SIGNATURE",
|
||||
LC_SEGMENT_SPLIT_INFO: "LC_SEGMENT_SPLIT_INFO",
|
||||
LC_REEXPORT_DYLIB: "LC_REEXPORT_DYLIB",
|
||||
LC_LAZY_LOAD_DYLIB: "LC_LAZY_LOAD_DYLIB",
|
||||
LC_ENCRYPTION_INFO: "LC_ENCRYPTION_INFO",
|
||||
LC_DYLD_INFO: "LC_DYLD_INFO",
|
||||
LC_DYLD_INFO_ONLY: "LC_DYLD_INFO_ONLY",
|
||||
LC_LOAD_UPWARD_DYLIB: "LC_LOAD_UPWARD_DYLIB",
|
||||
LC_VERSION_MIN_MACOSX: "LC_VERSION_MIN_MACOSX",
|
||||
LC_VERSION_MIN_IPHONEOS: "LC_VERSION_MIN_IPHONEOS",
|
||||
LC_FUNCTION_STARTS: "LC_FUNCTION_STARTS",
|
||||
LC_DYLD_ENVIRONMENT: "LC_DYLD_ENVIRONMENT",
|
||||
LC_MAIN: "LC_MAIN",
|
||||
LC_DATA_IN_CODE: "LC_DATA_IN_CODE",
|
||||
LC_SOURCE_VERSION: "LC_SOURCE_VERSION",
|
||||
LC_DYLIB_CODE_SIGN_DRS: "LC_DYLIB_CODE_SIGN_DRS",
|
||||
LC_ENCRYPTION_INFO_64: "LC_ENCRYPTION_INFO_64",
|
||||
LC_LINKER_OPTION: "LC_LINKER_OPTION",
|
||||
LC_LINKER_OPTIMIZATION_HINT: "LC_LINKER_OPTIMIZATION_HINT",
|
||||
LC_VERSION_MIN_TVOS: "LC_VERSION_MIN_TVOS",
|
||||
LC_VERSION_MIN_WATCHOS: "LC_VERSION_MIN_WATCHOS",
|
||||
LC_NOTE: "LC_NOTE",
|
||||
LC_BUILD_VERSION: "LC_BUILD_VERSION",
|
||||
LC_REQ_DYLD: "req_dyld",
|
||||
LC_SEGMENT: "segment",
|
||||
LC_SYMTAB: "symtab",
|
||||
LC_SYMSEG: "symseg",
|
||||
LC_THREAD: "thread",
|
||||
LC_UNIXTHREAD: "unixthread",
|
||||
LC_LOADFVMLIB: "loadfvmlib",
|
||||
LC_IDFVMLIB: "idfvmlib",
|
||||
LC_IDENT: "ident",
|
||||
LC_FVMFILE: "fvmfile",
|
||||
LC_PREPAGE: "prepage",
|
||||
LC_DYSYMTAB: "dysymtab",
|
||||
LC_LOAD_DYLIB: "load_dylib",
|
||||
LC_ID_DYLIB: "id_dylib",
|
||||
LC_LOAD_DYLINKER: "load_dylinker",
|
||||
LC_ID_DYLINKER: "id_dylinker",
|
||||
LC_PREBOUND_DYLIB: "prebound_dylib",
|
||||
LC_ROUTINES: "routines",
|
||||
LC_SUB_FRAMEWORK: "sub_framework",
|
||||
LC_SUB_UMBRELLA: "sub_umbrella",
|
||||
LC_SUB_CLIENT: "sub_client",
|
||||
LC_SUB_LIBRARY: "sub_library",
|
||||
LC_TWOLEVEL_HINTS: "twolevel_hints",
|
||||
LC_PREBIND_CKSUM: "prebind_cksum",
|
||||
LC_LOAD_WEAK_DYLIB: "load_weak_dylib",
|
||||
LC_SEGMENT_64: "segment_64",
|
||||
LC_ROUTINES_64: "routines_64",
|
||||
LC_UUID: "uuid",
|
||||
LC_RPATH: "rpath",
|
||||
LC_CODE_SIGNATURE: "code_signature",
|
||||
LC_SEGMENT_SPLIT_INFO: "segment_split_info",
|
||||
LC_REEXPORT_DYLIB: "reexport_dylib",
|
||||
LC_LAZY_LOAD_DYLIB: "lazy_load_dylib",
|
||||
LC_ENCRYPTION_INFO: "encryption_info",
|
||||
LC_DYLD_INFO: "dyld_info",
|
||||
LC_DYLD_INFO_ONLY: "dyld_info_only",
|
||||
LC_LOAD_UPWARD_DYLIB: "load_upward_dylib",
|
||||
LC_VERSION_MIN_MACOSX: "version_min_macosx",
|
||||
LC_VERSION_MIN_IPHONEOS: "version_min_iphoneos",
|
||||
LC_FUNCTION_STARTS: "function_starts",
|
||||
LC_DYLD_ENVIRONMENT: "dyld_environment",
|
||||
LC_MAIN: "main",
|
||||
LC_DATA_IN_CODE: "data_in_code",
|
||||
LC_SOURCE_VERSION: "source_version",
|
||||
LC_DYLIB_CODE_SIGN_DRS: "dylib_code_sign_drs",
|
||||
LC_ENCRYPTION_INFO_64: "encryption_info_64",
|
||||
LC_LINKER_OPTION: "linker_option",
|
||||
LC_LINKER_OPTIMIZATION_HINT: "linker_optimization_hint",
|
||||
LC_VERSION_MIN_TVOS: "version_min_tvos",
|
||||
LC_VERSION_MIN_WATCHOS: "version_min_watchos",
|
||||
LC_NOTE: "note",
|
||||
LC_BUILD_VERSION: "build_version",
|
||||
}
|
||||
|
||||
func machoDecode(d *decode.D, in interface{}) interface{} {
|
||||
|
Loading…
Reference in New Issue
Block a user