1
0
mirror of https://github.com/golang/go synced 2024-11-25 02:57:57 -07:00

ld: make .rodata section read-only

Fixes the respective warning from elflint.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4607048
This commit is contained in:
Gustavo Niemeyer 2011-06-14 15:13:54 -03:00
parent a5c1fa7f02
commit a84e9d01f0

View File

@ -781,7 +781,7 @@ dodata(void)
*/ */
/* read-only data */ /* read-only data */
sect = addsection(&segtext, ".rodata", 06); sect = addsection(&segtext, ".rodata", 04);
sect->vaddr = 0; sect->vaddr = 0;
datsize = 0; datsize = 0;
s = datap; s = datap;