On 25 Nov 2015 at 15:31, Kees Cook wrote: > diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h > index c4bd0e2c173c..772c784ba763 100644 > --- a/include/asm-generic/vmlinux.lds.h > +++ b/include/asm-generic/vmlinux.lds.h > @@ -256,6 +256,7 @@ > .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \ > VMLINUX_SYMBOL(__start_rodata) = .; \ > *(.rodata) *(.rodata.*) \ > + *(.data..ro_after_init) /* Read only after init */ \ ^^^^^^^^^^^ looks like it's tabs vs. spaces... > +/* > + * __read_only is used to mark things that are read-only after init (i.e. ^^^^^^^^^^^ i know you liked the old name but probably this one needs to change too :P > + * after mark_rodata_ro() has been called). These are effectively read-only, > + * but may get written to during init, so can't live in .rodata (via "const"). > + */ > +#ifndef __ro_after_init > +#define __ro_after_init __attribute__((__section__(".data..ro_after_init"))) > +#endif -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html