mirror of
https://github.com/golang/go
synced 2024-11-24 17:10:03 -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 */
|
||||
sect = addsection(&segtext, ".rodata", 06);
|
||||
sect = addsection(&segtext, ".rodata", 04);
|
||||
sect->vaddr = 0;
|
||||
datsize = 0;
|
||||
s = datap;
|
||||
|
Loading…
Reference in New Issue
Block a user