go/src/cmd/link/internal/ld/config.go

type BuildMode

const BuildModeUnset

const BuildModeExe

const BuildModePIE

const BuildModeCArchive

const BuildModeCShared

const BuildModeShared

const BuildModePlugin

// Set implements flag.Value to set the build mode based on the argument
// to the -buildmode flag.
func (mode *BuildMode) Set(s string) error {}

func (mode BuildMode) String() string {}

type LinkMode

const LinkAuto

const LinkInternal

const LinkExternal

func (mode *LinkMode) Set(s string) error {}

func (mode *LinkMode) String() string {}

// mustLinkExternal reports whether the program being linked requires
// the external linker be used to complete the link.
func mustLinkExternal(ctxt *Link) (res bool, reason string) {}

// determineLinkMode sets ctxt.LinkMode.
//
// It is called after flags are processed and inputs are processed,
// so the ctxt.LinkMode variable has an initial value from the -linkmode
// flag and the iscgo, externalobj, and unknownObjFormat variables are set.
func determineLinkMode(ctxt *Link) {}