AndrewAPrice wrote:
Is it possible, someway in C/C++ code in GCC, to define data that can be put into custom sections in an ELF binary?
__attribute__((section("foo")))
AndrewAPrice wrote:
I was wondering if it was possible for userland services in my OS to expose a list of RPC entry points, even if the process isn't yet loaded and running in memory.
Sections are not necessarily a feature of executables. There might be a special segment, but then you're going into special linker script territory. But why would you not just run the binary and have it register such a list with your kernel? Seems simpler to me.