aboutsummaryrefslogtreecommitdiff
path: root/config.mk.dist
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-05-01 13:14:50 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-05-01 13:33:17 +0100
commite112794669739057178f5ae8c94ccf0f8ca59c60 (patch)
tree675dc0c6470adb8483da4edf698e3411544de844 /config.mk.dist
parentfa69d42a8c196b3fa4c492fe4950fe4e39976a8c (diff)
downloadarm-optimized-routines-e112794669739057178f5ae8c94ccf0f8ca59c60.tar.gz
string: add a setting to disable GNU Property Notes
GNU Property Notes are only supported in recent tooling and older tools may warn about them, so it makes sense to remove these notes on a system where BTI is not supported anyway. The actual BTI instructions should be kept in place to avoid disturbing code layout. -DWANT_GNU_PROPERTY=0 removes the .note.gnu.property section from assembly files (ideally it would be based on the compiler default setting, but there is no feature test macro for BTI and PAC-RET).
Diffstat (limited to 'config.mk.dist')
-rw-r--r--config.mk.dist3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.mk.dist b/config.mk.dist
index 2336c52..cac40eb 100644
--- a/config.mk.dist
+++ b/config.mk.dist
@@ -60,6 +60,9 @@ math-cflags += -ffp-contract=fast -fno-math-errno
#math-ulpflags = -q -f
#math-testflags = -nostatus
+# Remove GNU Property Notes from asm files.
+#string-cflags += -DWANT_GNU_PROPERTY=0
+
# Enable assertion checks.
#networking-cflags += -DWANT_ASSERT