summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-06-23 10:20:07 +0200
committerMark Wielaard <mjw@redhat.com>2009-06-23 10:23:47 +0200
commitfcc30d6d020ebf1df7d05809074015c8f0990c22 (patch)
treefe9e4ef77b6a2dff3c46a301a8a7ba6dbd64ad39 /tapsets.cxx
parentac72d42e6de0b96fa3e7f9245b50288ad399e4b5 (diff)
downloadsystemtap-steved-fcc30d6d020ebf1df7d05809074015c8f0990c22.tar.gz
systemtap-steved-fcc30d6d020ebf1df7d05809074015c8f0990c22.tar.xz
systemtap-steved-fcc30d6d020ebf1df7d05809074015c8f0990c22.zip
PR 10313 Build error due to deprecation of elf_getshstrndx in elfutils.
* dwflpp.h: Check elfutils version, define elf_getshdrstrndx as elf_getshstrndx if elfutils 0.142 detected. * dwflpp.cxx (get_blacklist_section): Use elf_getshdrstrndx. * tapsets.cxx (probe_table): Likewise. (prepare_section_rejection): Likewise.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 7aee6930..6be7de11 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -699,7 +699,7 @@ dwarf_builder::probe_table::probe_table(string& mark_name, systemtap_session & s
elf = dwfl_module_getelf (dw->module, &bias);
Elf_Scn *probe_scn = NULL;
- dwfl_assert ("getshstrndx", elf_getshstrndx (elf, &shstrndx));
+ dwfl_assert ("getshdrstrndx", elf_getshdrstrndx (elf, &shstrndx));
have_probes = false;
@@ -723,7 +723,7 @@ dwarf_builder::probe_table::probe_table(string& mark_name, systemtap_session & s
elf = dwarf_getelf (dwfl_module_getdwarf (dw->module, &bias));
if (! elf)
return;
- dwfl_assert ("getshstrndx", elf_getshstrndx (elf, &shstrndx));
+ dwfl_assert ("getshdrstrndx", elf_getshdrstrndx (elf, &shstrndx));
probe_scn = NULL;
while ((probe_scn = elf_nextscn (elf, probe_scn)))
{
@@ -3702,7 +3702,7 @@ symbol_table::prepare_section_rejection(Dwfl_Module *mod)
if (!elf)
return;
- if (elf_getshstrndx(elf, &shstrndx) != 0)
+ if (elf_getshdrstrndx (elf, &shstrndx) != 0)
return;
while ((scn = elf_nextscn(elf, scn)) != NULL)
{