[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-a9a3f1d18a6c9ccf89728e23474645aa91e2f4f1@git.kernel.org>
Date: Thu, 28 Dec 2017 07:34:46 -0800
From: tip-bot for Hendrik Brueckner <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: acme@...hat.com, hpa@...or.com, tglx@...utronix.de,
linux-kernel@...r.kernel.org, mingo@...nel.org,
tmricht@...ux.vnet.ibm.com, jonathan.hermann@...ibm.com,
heiko.carstens@...ibm.com, brueckner@...ux.vnet.ibm.com,
linux-s390@...r.kernel.org, schwidefsky@...ibm.com
Subject: [tip:perf/core] perf s390: Always build with -fPIC
Commit-ID: a9a3f1d18a6c9ccf89728e23474645aa91e2f4f1
Gitweb: https://git.kernel.org/tip/a9a3f1d18a6c9ccf89728e23474645aa91e2f4f1
Author: Hendrik Brueckner <brueckner@...ux.vnet.ibm.com>
AuthorDate: Wed, 13 Dec 2017 17:46:54 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Wed, 27 Dec 2017 12:15:57 -0300
perf s390: Always build with -fPIC
On s390, object files must be compiled with position-indepedent code in
order to be incrementally linked or linked to shared libraries.
Therefore, add -fPIC to the CFLAGS for s390 to ensure each object file
is built properly.
Reported-by: Jonathan Hermann <jonathan.hermann@...ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@...ux.vnet.ibm.com>
Cc: Heiko Carstens <heiko.carstens@...ibm.com>
Cc: Martin Schwidefsky <schwidefsky@...ibm.com>
Cc: Thomas Richter <tmricht@...ux.vnet.ibm.com>
Cc: linux s390 list <linux-s390@...r.kernel.org>
Link: https://lkml.kernel.org/r/20171207080951.GC4889@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/Makefile.config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index eb6bd99..f050f38 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -58,7 +58,7 @@ endif
ifeq ($(ARCH),s390)
NO_PERF_REGS := 0
NO_SYSCALL_TABLE := 0
- CFLAGS += -I$(OUTPUT)arch/s390/include/generated
+ CFLAGS += -fPIC -I$(OUTPUT)arch/s390/include/generated
endif
ifeq ($(NO_PERF_REGS),0)
Powered by blists - more mailing lists