Commit 342d25fc authored by Hiroshi Ioka's avatar Hiroshi Ioka Committed by Ian Lance Taylor

cmd/link: remove redundant switch stmt

Change-Id: I5c4f8dc1e174b3438ef4fb509fac78d6e1b292c9
Reviewed-on: https://go-review.googlesource.com/54791Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
Reviewed-by: default avatarAvelino <t@avelino.xxx>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent b1fab099
...@@ -1166,11 +1166,8 @@ func dosymtype(ctxt *Link) { ...@@ -1166,11 +1166,8 @@ func dosymtype(ctxt *Link) {
for _, s := range ctxt.Syms.Allsym { for _, s := range ctxt.Syms.Allsym {
// Create a new entry in the .init_array section that points to the // Create a new entry in the .init_array section that points to the
// library initializer function. // library initializer function.
switch Buildmode { if s.Name == *flagEntrySymbol {
case BuildmodeCArchive, BuildmodeCShared: addinitarrdata(ctxt, s)
if s.Name == *flagEntrySymbol {
addinitarrdata(ctxt, s)
}
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment