github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/internal/objabi/util.go (about)

     1  // Copyright 2015 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package objabi
     6  
     7  const (
     8  	ElfRelocOffset   = 256
     9  	MachoRelocOffset = 2048
    10  	GlobalDictPrefix = ".dict"
    11  )
    12  
    13  // HeaderString returns the toolchain configuration string written in
    14  // Go object headers. This string ensures we don't attempt to import
    15  // or link object files that are incompatible with each other. This
    16  // string always starts with "go object ".
    17  func HeaderString() string