Enable Async MTE in iproute2.
This change enables Async mode ARM MTE in iproute2 utils on compatible
hardware and has no effect otherwise.
Bug: 181603044
Test: atest under system/netd/tests
Change-Id: I94f169ec8e5ee8bd67e1561cdacd3d9bcddba4c2
Merged-In: I94f169ec8e5ee8bd67e1561cdacd3d9bcddba4c2
(cherry picked from commit 722d9b16de024e5184547a17d432d5598da6f41a)
diff --git a/ip/Android.bp b/ip/Android.bp
index d15739e..25a4467 100644
--- a/ip/Android.bp
+++ b/ip/Android.bp
@@ -114,4 +114,8 @@
"-Wl,-export-dynamic",
"-Wl,--no-gc-sections",
],
+
+ sanitize: {
+ memtag_heap: true,
+ },
}
diff --git a/misc/Android.bp b/misc/Android.bp
index 0537618..5b75c71 100644
--- a/misc/Android.bp
+++ b/misc/Android.bp
@@ -30,4 +30,8 @@
],
ldflags: ["-Wl,-export-dynamic"],
+
+ sanitize: {
+ memtag_heap: true,
+ },
}
diff --git a/tc/Android.bp b/tc/Android.bp
index 866a40e..3649ceb 100644
--- a/tc/Android.bp
+++ b/tc/Android.bp
@@ -119,4 +119,8 @@
// This is a work around for b/18403920
ldflags: ["-Wl,--no-gc-sections"],
+
+ sanitize: {
+ memtag_heap: true,
+ },
}