diff options
author | Dave Brolley <brolley@redhat.com> | 2009-12-15 11:13:57 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-12-15 11:13:57 -0500 |
commit | 9d2836b860641401bd7694a2dd0e9cdd7cdac4ed (patch) | |
tree | 905e84f5ae51f6974610a7ae1c82dd44f0f5130b | |
parent | 2ab8398f875cbd8eff11cecc7a7abd65ffcb4f4c (diff) | |
parent | 66f65c4fb0ddcdf8a85a29662a23a546cfd5dffe (diff) | |
download | systemtap-steved-9d2836b860641401bd7694a2dd0e9cdd7cdac4ed.tar.gz systemtap-steved-9d2836b860641401bd7694a2dd0e9cdd7cdac4ed.tar.xz systemtap-steved-9d2836b860641401bd7694a2dd0e9cdd7cdac4ed.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
-rw-r--r-- | translate.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx index 4b006159..aca0d868 100644 --- a/translate.cxx +++ b/translate.cxx @@ -4909,7 +4909,14 @@ dump_unwindsyms (Dwfl_Module *m, c->output << ".num_sections = sizeof(_stp_module_" << stpmod_idx << "_sections)/" << "sizeof(struct _stp_section),\n"; - if (build_id_len > 0) { + /* Don't save build-id if it is located before _stext. + * This probably means that build-id will not be loaded at all and + * happens for example with ARM kernel. + * + * See also: + * http://sources.redhat.com/ml/systemtap/2009-q4/msg00574.html + */ + if (build_id_len > 0 && (build_id_vaddr > base + extra_offset)) { c->output << ".build_id_bits = \"" ; for (int j=0; j<build_id_len;j++) c->output << "\\x" << hex |