// InitLSym defines f's obj.LSym and initializes it based on the // properties of f. This includes setting the symbol flags and ABI and // creating and initializing related DWARF symbols. // // InitLSym must be called exactly once per function and must be // called for both functions with bodies and functions without bodies. // For body-less functions, we only create the LSym; for functions // with bodies call a helper to setup up / populate the LSym. func InitLSym(f *Func, hasBody bool) { … } // setupTextLSym initializes the LSym for a with-body text symbol. func setupTextLSym(f *Func, flag int) { … }