Skip to content

Commit a52a5d8

Browse files
committed
cmd/link: mark ELF PLT sections executable
Change-Id: Ie0316a06c30485f783c2175590d7e9fc4fa3e0cd Reviewed-on: https://go-review.googlesource.com/c/go/+/253021 Run-TryBot: Cherry Zhang <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
1 parent ae3680b commit a52a5d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/link/internal/ld/data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ func (state *dodataState) allocateDataSections(ctxt *Link) {
17861786
culprit := ldr.SymName(state.data[sym.STEXT][0])
17871787
Errorf(nil, "dodata found an sym.STEXT symbol: %s", culprit)
17881788
}
1789-
state.allocateSingleSymSections(&Segtext, sym.SELFRXSECT, sym.SRODATA, 04)
1789+
state.allocateSingleSymSections(&Segtext, sym.SELFRXSECT, sym.SRODATA, 05)
17901790
state.allocateSingleSymSections(&Segtext, sym.SMACHOPLT, sym.SRODATA, 05)
17911791

17921792
/* read-only data */

0 commit comments

Comments
 (0)