]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link/internal/loader: fix buglet in section handling
authorThan McIntosh <thanm@google.com>
Thu, 23 Apr 2020 12:43:29 +0000 (08:43 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 24 Apr 2020 13:41:20 +0000 (13:41 +0000)
commitadea6a90e361629d20a68400c0c5cdcdfcdf087e
tree3bb047463ea68862153175c3b8cb6c05bccd39e3
parent67bf856b962731965f7e9a75e6bede62fee1a4da
[dev.link] cmd/link/internal/loader: fix buglet in section handling

Allow for the possibility that a client could call newExtSym(), then
ask for the section of the new sym before SetSectSym is called on it
(check in SymSect for this case).

Change-Id: I7bd78e7b3b7618943705b616f62ea78c4a1b68d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/229603
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/loader/loader.go