Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for findMachoCodeSignature (0.13 sec)

  1. src/cmd/internal/buildid/rewrite.go

    	b := []byte(id)
    	for _, p := range pos {
    		if _, err := w.WriteAt(b, p); err != nil {
    			return err
    		}
    	}
    
    	// Update Mach-O code signature, if any.
    	if f, cmd, ok := findMachoCodeSignature(w); ok {
    		if codesign.Size(int64(cmd.Dataoff), "a.out") == int64(cmd.Datasize) {
    			// Update the signature if the size matches, so we don't need to
    			// fix up headers. Binaries generated by the Go linker should have
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 5.1K bytes
    - Viewed (0)
Back to top