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: proposed patch for SW9937


Tweaked the previous to eliminate .module_base and output build_id_offset as follows:


@@ -5376,9 +5379,10 @@ dump_unwindsyms (Dwfl_Module *m,
if (modname == "kernel")
c->output << ".build_id_offset = 0x" << hex << build_id_vaddr - (base + extra_offset)
<< dec << ",\n";
+ // ET_DYN: task finder gives the load address. ET_EXEC: this is absolute address
else
c->output << ".build_id_offset = 0x" << hex
- << build_id_vaddr - base
+ << build_id_vaddr /* - base */
<< dec << ",\n";
} else
c->output << ".build_id_len = 0,\n";


 for ET_EXEC we get e.g. 0x40024c
 for ET_DYN we get e.g.  0x1a0
 for kernel we get e.g.  0x430544


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