Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2019-05-18 01:53:01 +0300
committerAndrei Vagin <avagin@gmail.com>2019-09-07 15:59:49 +0300
commit1b66b66b56517a1e522530efe159c7322bafd921 (patch)
treeaa5916b280a156936367559f937f3d33f6725cd0 /Makefile
parent866bed0ed2ecfa1dd87367c3b4e0f6bb45a587f3 (diff)
arm/build: Move -marm cflag to CFLAGS_PIE
I don't want to see CFLAGS redefined per-architecture in PIE makefiles in couple of places. Clean it up. The only expected per-arch ifdeffery should be object files. Also add a big comment about -marm vs -mthumb[2] Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 38887da99..50948787a 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,13 @@ ifeq ($(ARCH),arm)
endif
PROTOUFIX := y
+ # For simplicity - compile code in Arm mode without interwork.
+ # We could choose Thumb mode as default instead - but a dirty
+ # experiment shows that with 90Kb PIEs Thumb code doesn't save
+ # even one page. So, let's stick so far to Arm mode as it's more
+ # universal around all different Arm variations, until someone
+ # will find any use for Thumb mode. -dima
+ CFLAGS_PIE := -marm
endif
ifeq ($(ARCH),aarch64)