Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755029AbbBRSaG (ORCPT ); Wed, 18 Feb 2015 13:30:06 -0500 Received: from terminus.zytor.com ([198.137.202.10]:40910 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754961AbbBRSaA (ORCPT ); Wed, 18 Feb 2015 13:30:00 -0500 Date: Wed, 18 Feb 2015 10:29:40 -0800 From: tip-bot for Vinson Lee Message-ID: Cc: Waiman.Long@hp.com, mingo@kernel.org, eranian@google.com, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, hpa@zytor.com, tglx@linutronix.de, namhyung@kernel.org, jolsa@redhat.com, avi@cloudius-systems.com, acme@redhat.com, anton@samba.org, vlee@twitter.com, adrian.hunter@intel.com, paulus@samba.org Reply-To: vlee@twitter.com, anton@samba.org, paulus@samba.org, adrian.hunter@intel.com, namhyung@kernel.org, avi@cloudius-systems.com, jolsa@redhat.com, tglx@linutronix.de, acme@redhat.com, eranian@google.com, a.p.zijlstra@chello.nl, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, Waiman.Long@hp.com In-Reply-To: <1423528286-13630-1-git-send-email-vlee@twopensource.com> References: <1423528286-13630-1-git-send-email-vlee@twopensource.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf symbols: Define STT_GNU_IFUNC for glibc 2.9 and older. Git-Commit-ID: 4e31050f482c02c822b150d71cf1ea5be7c9d6e4 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2286 Lines: 58 Commit-ID: 4e31050f482c02c822b150d71cf1ea5be7c9d6e4 Gitweb: http://git.kernel.org/tip/4e31050f482c02c822b150d71cf1ea5be7c9d6e4 Author: Vinson Lee AuthorDate: Mon, 9 Feb 2015 16:29:37 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Feb 2015 12:37:32 -0300 perf symbols: Define STT_GNU_IFUNC for glibc 2.9 and older. The token STT_GNU_IFUNC is not available with glibc 2.9 and older. Define this token if it is not already defined. This patch fixes this build errors with older versions of glibc. CC util/symbol-elf.o util/symbol-elf.c: In function ‘elf_sym__is_function’: util/symbol-elf.c:75: error: ‘STT_GNU_IFUNC’ undeclared (first use in this function) util/symbol-elf.c:75: error: (Each undeclared identifier is reported only once util/symbol-elf.c:75: error: for each function it appears in.) make: *** [util/symbol-elf.o] Error 1 Signed-off-by: Vinson Lee Acked-by: Namhyung Kim Cc: Adrian Hunter Cc: Anton Blanchard Cc: Avi Kivity Cc: Jiri Olsa Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Waiman Long Cc: stable@vger.kernel.org # 3.17+ Link: http://lkml.kernel.org/r/1423528286-13630-1-git-send-email-vlee@twopensource.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/symbol-elf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 225eb73..b02731a 100644 --- a/tools/perf/util/symbol-elf.c +++ b/tools/perf/util/symbol-elf.c @@ -69,6 +69,10 @@ static inline uint8_t elf_sym__type(const GElf_Sym *sym) return GELF_ST_TYPE(sym->st_info); } +#ifndef STT_GNU_IFUNC +#define STT_GNU_IFUNC 10 +#endif + static inline int elf_sym__is_function(const GElf_Sym *sym) { return (elf_sym__type(sym) == STT_FUNC || -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/