Dump MH_DYLINKER images in upload_system_symbols.

Change-Id: I18291efe211f88ae0607a9055d027b520ef13291
Reviewed-on: https://chromium-review.googlesource.com/462676
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Robert Sesek 2017-03-29 19:32:17 -04:00
parent 846b6335c5
commit aa7115cfde
3 changed files with 6 additions and 4 deletions

View File

@ -59,3 +59,4 @@ const char* GetNXArchInfoName(cpu_type_t cpu_type, cpu_subtype_t cpu_subtype) {
const uint32_t kMachHeaderFtypeDylib = MH_DYLIB; const uint32_t kMachHeaderFtypeDylib = MH_DYLIB;
const uint32_t kMachHeaderFtypeBundle = MH_BUNDLE; const uint32_t kMachHeaderFtypeBundle = MH_BUNDLE;
const uint32_t kMachHeaderFtypeExe = MH_EXECUTE; const uint32_t kMachHeaderFtypeExe = MH_EXECUTE;
const uint32_t kMachHeaderFtypeDylinker = MH_DYLINKER;

View File

@ -59,7 +59,8 @@ func getArchStringFromHeader(header macho.FileHeader) string {
} }
const ( const (
MachODylib macho.Type = C.kMachHeaderFtypeDylib MachODylib macho.Type = C.kMachHeaderFtypeDylib
MachOBundle = C.kMachHeaderFtypeBundle MachOBundle = C.kMachHeaderFtypeBundle
MachOExe = C.kMachHeaderFtypeExe MachOExe = C.kMachHeaderFtypeExe
MachODylinker = C.kMachHeaderFtypeDylinker
) )

View File

@ -404,7 +404,7 @@ func (fq *findQueue) worker() {
} }
func (fq *findQueue) dumpMachOFile(fp string, image *macho.File) { func (fq *findQueue) dumpMachOFile(fp string, image *macho.File) {
if image.Type != MachODylib && image.Type != MachOBundle { if image.Type != MachODylib && image.Type != MachOBundle && image.Type != MachODylinker {
return return
} }