I am trying to store a C array in a custom elf section and make it read only, this array is used by static library that it is used itself by a shared library.
I am trying to look for examples on how to achieve this using C code and linker scripts.
Is there any examples ?
I tried to google some examples but I didn’t find any thing helpful.