Adding module support for __ro_after_init

From: Kees Cook
Date: Fri Jun 03 2016 - 14:46:39 EST

Hi Rusty,

I'd love to get your thoughts on the best way to support
__ro_after_init markings for modules. Are the r/o markings done after
module __init runs? If so, this should make things easy, and then we
just need to move .data..ro_after_init into .rodata at link time. If
not, then we'd need to explicitly make this section read-only after



Kees Cook
Chrome OS & Brillo Security