diff options
author | Cherry Zhang <cherryyz@google.com> | 2020-09-03 17:51:01 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2020-09-08 17:19:24 +0000 |
commit | a52a5d8a43ac23c34231e92da3aba61cd8cf7d97 (patch) | |
tree | 12448a506f883c64f51dd8c4e8fcb1c1494b6ece | |
parent | ae3680b30b81162da3ae0ea248eea502e8ca2195 (diff) | |
download | go-a52a5d8a43ac23c34231e92da3aba61cd8cf7d97.tar.gz go-a52a5d8a43ac23c34231e92da3aba61cd8cf7d97.zip |
cmd/link: mark ELF PLT sections executable
Change-Id: Ie0316a06c30485f783c2175590d7e9fc4fa3e0cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/253021
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
-rw-r--r-- | src/cmd/link/internal/ld/data.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/ld/data.go b/src/cmd/link/internal/ld/data.go index 85ce7d8fb7..8324a98a26 100644 --- a/src/cmd/link/internal/ld/data.go +++ b/src/cmd/link/internal/ld/data.go @@ -1786,7 +1786,7 @@ func (state *dodataState) allocateDataSections(ctxt *Link) { culprit := ldr.SymName(state.data[sym.STEXT][0]) Errorf(nil, "dodata found an sym.STEXT symbol: %s", culprit) } - state.allocateSingleSymSections(&Segtext, sym.SELFRXSECT, sym.SRODATA, 04) + state.allocateSingleSymSections(&Segtext, sym.SELFRXSECT, sym.SRODATA, 05) state.allocateSingleSymSections(&Segtext, sym.SMACHOPLT, sym.SRODATA, 05) /* read-only data */ |