Commit a84e9d01 authored by Gustavo Niemeyer's avatar Gustavo Niemeyer

ld: make .rodata section read-only

Fixes the respective warning from elflint.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4607048
parent a5c1fa7f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment