diff options
| author | Hiroshi Ioka <hirochachacha@gmail.com> | 2017-07-09 09:01:47 +0900 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2017-08-14 04:44:35 +0000 |
| commit | 342d25fc05a915f267e9d4f0bdc13fb04e014a2b (patch) | |
| tree | 9e7e7ca9c821bcd752616cd39a98e94e7ec29198 /src | |
| parent | b1fab099011b2ec9499e99a32ed8de515e576b86 (diff) | |
| download | go-342d25fc05a915f267e9d4f0bdc13fb04e014a2b.tar.xz | |
cmd/link: remove redundant switch stmt
Change-Id: I5c4f8dc1e174b3438ef4fb509fac78d6e1b292c9
Reviewed-on: https://go-review.googlesource.com/54791
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Avelino <t@avelino.xxx>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/link/internal/ld/data.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cmd/link/internal/ld/data.go b/src/cmd/link/internal/ld/data.go index 1d053d23b7..23e0e4f2b0 100644 --- a/src/cmd/link/internal/ld/data.go +++ b/src/cmd/link/internal/ld/data.go @@ -1166,11 +1166,8 @@ func dosymtype(ctxt *Link) { for _, s := range ctxt.Syms.Allsym { // Create a new entry in the .init_array section that points to the // library initializer function. - switch Buildmode { - case BuildmodeCArchive, BuildmodeCShared: - if s.Name == *flagEntrySymbol { - addinitarrdata(ctxt, s) - } + if s.Name == *flagEntrySymbol { + addinitarrdata(ctxt, s) } } } |
