mirror of
https://github.com/golang/go
synced 2024-11-21 19:04:44 -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:
parent
a5c1fa7f02
commit
a84e9d01f0
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user