diff options
author | Dmitry Safonov <dima@arista.com> | 2019-05-18 01:53:01 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2019-09-07 15:59:49 +0300 |
commit | 1b66b66b56517a1e522530efe159c7322bafd921 (patch) | |
tree | aa5916b280a156936367559f937f3d33f6725cd0 /Makefile | |
parent | 866bed0ed2ecfa1dd87367c3b4e0f6bb45a587f3 (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-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |