tables.h: make .text and .init.text const

Be a bit more pedantic about *.text* based sections
and mark them as read-only by using const.

Note that this does not stuff further things into
.rodata, we've already done that, the section mapping
for Linux sections is a separate topic, and as far
as this effort is concerned, its current goal is simply
only to use the exact same mappings it alread head.
We'll just be standardizing the maming scheme used
to later help identify clearly what proper Linux section
a custom section belongs to, without having to modify
the custom linker script.

If we discover in the process of converting over custom
section code to linker tables that they deserve to be
in a different section we'll do that as a separate step.

If one wants to inspect the kernel's .rodata, one
can look at include/asm-generic/vmlinux.lds.h's
definition of RO_DATA_SECTION(align). Then also
consider these:

   #define RODATA          RO_DATA_SECTION(4096)
   #define RO_DATA(align)  RO_DATA_SECTION(align)

At least x86 uses RO_DATA(PAGE_SIZE). For documentation
completeness note that .init.rodata is rolled into
INIT_DATA as per include/asm-generic/vmlinux.lds.h, however
for this userspace demo we're pegging it into .rodata
proper as userspace has no .init that we'll later free
at run time.

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
1 file changed