func getName(sym *LSym) string { return sym.Name }
func updateSize(sym *LSym, newSize int) { sym.Size = int64(newSize) }
func setSection(sym *LSym, section string) { sym.Sect = &Section{Name: section} }This function takes an LSym pointer and a section name, and sets the symbol’s Sect field to a new Section object with that name. Overall, the cmd.internal.obj LSym library is used internally in Go’s compiler and linker tools to manipulate compiled binary files.