I'm not entirely sure about having this as a new public interface. It
might make more sense to return the Elf_Scn of the symtab or something like
that. My inclination is to start out by only using the information
internally, and think about a public interface for it later when there is
actual demand for that.
I think "symglobals" is an unnatural name for fields and variables for
this. It looks like a count, and what it's the count of is the locals.
So something like "nlocals" or "first_global" makes more sense to me.
Thanks,
Roland