Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for peekMachoPlatform (0.18 sec)

  1. src/cmd/link/internal/ld/macho.go

    	m, err := macho.NewFile(sr)
    	if err != nil {
    		// Not a valid Mach-O file.
    		return nil, nil
    	}
    	return peekMachoPlatform(m)
    }
    
    // peekMachoPlatform returns the first LC_VERSION_MIN_* or LC_BUILD_VERSION
    // load command found in the Mach-O file, if any.
    func peekMachoPlatform(m *macho.File) (*MachoPlatformLoad, error) {
    	for _, cmd := range m.Loads {
    		raw := cmd.Raw()
    		ml := MachoLoad{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
Back to top