From: Ian Lance Taylor Date: Thu, 29 Jan 2026 08:51:32 +0000 (-0800) Subject: cmd/link: remove AIX special case for first type descriptor X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ee7a2119ac17ea2a6bbf12b4c8001bf39c388166;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Cherry Mui --- diff --git a/src/cmd/link/internal/ld/data.go b/src/cmd/link/internal/ld/data.go index 682ae267bf..63fe516d4e 100644 --- a/src/cmd/link/internal/ld/data.go +++ b/src/cmd/link/internal/ld/data.go @@ -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