aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objfile/elf.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/internal/objfile/elf.go')
-rw-r--r--src/cmd/internal/objfile/elf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/objfile/elf.go b/src/cmd/internal/objfile/elf.go
index 6988cea936..bf8d18307c 100644
--- a/src/cmd/internal/objfile/elf.go
+++ b/src/cmd/internal/objfile/elf.go
@@ -32,7 +32,7 @@ func (f *elfFile) symbols() ([]Sym, error) {
return nil, err
}
- var syms []Sym
+ syms := make([]Sym, 0, len(elfSyms))
for _, s := range elfSyms {
sym := Sym{Addr: s.Value, Name: s.Name, Size: int64(s.Size), Code: '?'}
switch s.Section {