]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: fix some bugs in loader
authorThan McIntosh <thanm@google.com>
Wed, 18 Dec 2019 15:57:15 +0000 (10:57 -0500)
committerThan McIntosh <thanm@google.com>
Fri, 20 Dec 2019 21:05:06 +0000 (21:05 +0000)
commit9a5468edff1b0f8e3b6be02ed59b238679cf5c2f
tree404ec30a3404d13796d1ba0a50711bd71155a54c
parente4a8da499b0d5aa235abaddb09793546ba6b7446
[dev.link] cmd/link: fix some bugs in loader

This patch fixes a couple of bugs introduced in CL 210778 and CL 207606:

- apply the same version selection scheme in loader.CreateExtSym that
  we're currently using for loader.Create (since the two functions
  will be used in the same way by the host object loader)\ 1

- add code to the loader's NewLoader function to create initial map
  values for some of the map-based symbol attributes (somewhere along
  the line the code to do this seems to have gotten lost, so this
  patch adds it back).

- fix a coding error in growAttrBitmaps (wrong bitmap passed to
  append when extending attrOnList)

Change-Id: Ie0c8c6876428bb21d788c19a7a2db945ac649fac
Reviewed-on: https://go-review.googlesource.com/c/go/+/212097
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/loader/loader.go