diff options
author | ddomingo <ddomingo@redhat.com> | 2008-10-09 13:12:08 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2008-10-09 13:12:08 +1000 |
commit | 37cda13ed305fc4887536166c232f4aee087d862 (patch) | |
tree | 6b877ba9b2ed71f32842dacb18e09732e0c307a4 /runtime/staprun | |
parent | 9e522dfc27872bd28ab5a4f7fbfbfd7cc843e3cb (diff) | |
parent | 0d633db21595f7160d0f7a767ab92181284d8adb (diff) | |
download | systemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.tar.gz systemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.tar.xz systemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/staprun')
-rw-r--r-- | runtime/staprun/staprun.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c index f8a08876..d23945e6 100644 --- a/runtime/staprun/staprun.c +++ b/runtime/staprun/staprun.c @@ -370,6 +370,11 @@ int send_relocation_kernel () } fclose (kallsyms); if (!done_with_kallsyms) srkrc = -1; + /* detect note section, send flag if there + * NB: address=2 represents existed note, the real one in _stp_module + */ + if (srkrc != -1 && !access("/sys/kernel/notes", R_OK)) + send_a_relocation ("kernel", ".note.gnu.build-id", 2); } return srkrc; |