Re: runtime validation of DT_SYMTAB lookups - why is there no DT_SYMSZ?

2022-08-27 Thread Jacob Burkholder via Elfutils-devel
I've always used the fact that the symbol table and string table are present in the binary in that order and adjacent to each other to find the number of symbol table entries., ie (strtab - (char *)symtab) / sizeof(*symtab), although clearly this is not required and may just be gnu ld convention.

Re: unwind non-PC registers using elfutils

2021-11-10 Thread Jacob Burkholder via Elfutils-devel
Hi Mark, thanks for your mail. On Wed, Nov 10, 2021 at 6:09 AM Mark Wielaard wrote: > > Hi Jacob, > > On Sun, 2021-10-03 at 09:38 -0700, Jacob Burkholder via Elfutils-devel wrote: > > Hi, I'm trying to figure out how to unwind registers other than the PC > &g

unwind non-PC registers using elfutils

2021-10-03 Thread Jacob Burkholder via Elfutils-devel
Hi, I'm trying to figure out how to unwind registers other than the PC using elfutils. I can use dwfl_module_register_names to get the register names, and then I'm trying to use dwarf_frame_register to get the register values for a given frame. I looked at the code in __libdwfl_frame_unwind and t