Merge "Remove libc_ndk." into main
diff --git a/apex/Android.bp b/apex/Android.bp
index 3529a2e..d04907b 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -92,6 +92,7 @@
"crtbegin_so",
"crtend_android",
"crtend_so",
+ "crt_pad_segment",
],
}
diff --git a/libc/bionic/heap_tagging.cpp b/libc/bionic/heap_tagging.cpp
index 230899a..48ec955 100644
--- a/libc/bionic/heap_tagging.cpp
+++ b/libc/bionic/heap_tagging.cpp
@@ -90,10 +90,7 @@
}
tagged_addr_ctrl = (tagged_addr_ctrl & ~PR_MTE_TCF_MASK) | tcf;
- if (prctl(PR_SET_TAGGED_ADDR_CTRL, tagged_addr_ctrl, 0, 0, 0) < 0) {
- return false;
- }
- return true;
+ return prctl(PR_SET_TAGGED_ADDR_CTRL, tagged_addr_ctrl, 0, 0, 0) >= 0;
},
&tcf);
}