This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR10000: emit _stp_relocate* calculations correctly for kernel/module global $data (Was: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-0.9-238-g432f054)


> We also need the size of the relocation sections to lookup other info for
> an address at runtime we associate with a module, like the unwind tables.

I don't entirely follow this part.  (You mean "relocated sections", right?
A "relocation section" is the SHT_REL/SHT_RELA section.)

You are packing the unwind info taken from a .ko's .debug_frame for use at
runtime.  All the address literals therein will need to be relocated at run
time.  For each one, you need to emit the symbol+offset or section+offset
information to use at runtime.  dwfl_relocate_address when you pack gives
you section+offset.  i.e., this is the same as loc2c-emitted addresses,
probe addresses, etc.  None of that procedure needs to know the size of a
section, neither at translation time nor at runtime.

So what's the size for?


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]