perf symbols: Provide a GElf_Nhdr typedef
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: cc31078cf13f67c489ad6a5c48dea657f5f88d11 Gitweb: http://git.kernel.org/tip/cc31078cf13f67c489ad6a5c48dea657f5f88d11 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 12 Jul 2016 11:04:13 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 12 Jul 2016 15:20:38 -0300
perf symbols: Provide a GElf_Nhdr typedef
This one can be safely defined to be Elf64_Nhdr, as it is in elfutils's libelf, but not on musl libc, as both Elf64_Nhdr and Elf32_Nhdr have the same layout.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/symbol-elf.c | 1 + 1 file changed, 1 insertion(+)
tools/perf/util/symbol-elf.c +1 -0
@@ -16,6 +16,7 @@#define EM_AARCH64 183/* ARM 64 bit */ #endif +typedef Elf64_Nhdr GElf_Nhdr ;#ifdef HAVE_CPLUS_DEMANGLE_SUPPORT extern char *cplus_demangle (const char *,int );