aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/sym/library.go
blob: 21568dfbe2901518caf18b14428086394b2f3000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package sym

type Library struct {
	Objref        string
	Srcref        string
	File          string
	Pkg           string
	Shlib         string
	Hash          string
	ImportStrings []string
	Imports       []*Library
	Textp         []*Symbol // text symbols defined in this library
	DupTextSyms   []*Symbol // dupok text symbols defined in this library
	Main          bool
	Safe          bool
	Units         []*CompilationUnit

	Textp2       []LoaderSym // text syms defined in this library
	DupTextSyms2 []LoaderSym // dupok text syms defined in this library
}

func (l Library) String() string {
	return l.Pkg
}