mirror of
https://github.com/golang/go.git
synced 2026-02-06 18:00:01 +00:00
cmd/link: remove AIX special case for first type descriptor
It doesn't seem to be necessary, and removing it seems cleaner than adding an AIX case to the code in runtime.moduleTypelinks. Fixes #77365 Change-Id: I59fa56abf42e18017bd112481ea09d0cca47d105 Reviewed-on: https://go-review.googlesource.com/c/go/+/740220 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
48788436b8
commit
ee7a2119ac
1 changed files with 1 additions and 1 deletions
|
|
@ -2182,7 +2182,7 @@ func (state *dodataState) allocateDataSections(ctxt *Link) {
|
|||
createRelroSect := func(name string, symn sym.SymKind) *sym.Section {
|
||||
sect := state.allocateNamedDataSection(segRelro, genrelrosecname(name), []sym.SymKind{symn}, relroPerm)
|
||||
|
||||
if symn == sym.STYPE && ctxt.HeadType != objabi.Haix {
|
||||
if symn == sym.STYPE {
|
||||
// Skip forward so that no type
|
||||
// reference uses a zero offset.
|
||||
// This is unlikely but possible in small
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue