Skip to content

Commit 76659e4

Browse files
committed
cmd/link/internal/s390x: fix s390x build
Fix breakage from CL 173437 Change-Id: If218ffaa1259fbdee641143ffbe4b38030c373b9 Reviewed-on: https://go-review.googlesource.com/c/go/+/174278 Reviewed-by: Michael Munday <[email protected]> Reviewed-by: Cherry Zhang <[email protected]>
1 parent db1514c commit 76659e4

File tree

1 file changed

+2
-0
lines changed
  • src/cmd/link/internal/s390x

1 file changed

+2
-0
lines changed

src/cmd/link/internal/s390x/asm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func gentext(ctxt *ld.Link) {
6969
initfunc.AddUint8(0xc0)
7070
initfunc.AddUint8(0x20)
7171
lmd := initfunc.AddRel()
72+
lmd.InitExt()
7273
lmd.Off = int32(initfunc.Size)
7374
lmd.Siz = 4
7475
lmd.Sym = ctxt.Moduledata
@@ -81,6 +82,7 @@ func gentext(ctxt *ld.Link) {
8182
initfunc.AddUint8(0xc0)
8283
initfunc.AddUint8(0xf4)
8384
rel := initfunc.AddRel()
85+
rel.InitExt()
8486
rel.Off = int32(initfunc.Size)
8587
rel.Siz = 4
8688
rel.Sym = ctxt.Syms.Lookup("runtime.addmoduledata", 0)

0 commit comments

Comments
 (0)