1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:44:39 -07:00

ld: text segment should not be writable

R=adg
CC=golang-dev
https://golang.org/cl/3708041
This commit is contained in:
Russ Cox 2010-12-15 19:29:53 -08:00
parent e253d37d3e
commit 1116ec4f20

View File

@ -857,7 +857,7 @@ address(void)
uvlong va;
va = INITTEXT;
segtext.rwx = 07;
segtext.rwx = 05;
segtext.vaddr = va;
segtext.fileoff = HEADR;
for(s=segtext.sect; s != nil; s=s->next) {