From fcc30d6d020ebf1df7d05809074015c8f0990c22 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 23 Jun 2009 10:20:07 +0200 Subject: 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. --- dwflpp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwflpp.cxx') diff --git a/dwflpp.cxx b/dwflpp.cxx index 61627e16..5991d1a1 100644 --- a/dwflpp.cxx +++ b/dwflpp.cxx @@ -2316,7 +2316,7 @@ dwflpp::get_blacklist_section(Dwarf_Addr addr) { Elf_Scn* scn = 0; size_t shstrndx; - dwfl_assert ("getshstrndx", elf_getshstrndx (elf, &shstrndx)); + dwfl_assert ("getshdrstrndx", elf_getshdrstrndx (elf, &shstrndx)); while ((scn = elf_nextscn (elf, scn)) != NULL) { GElf_Shdr shdr_mem; -- cgit