[MTE] do not use version number for memtag_dynamic_entries
We don't need that, because soinfo is not versioned on aarch64, and we
only need those fields on aarch64
This allows us to reland memtag-globals even with apps that depend on
the SOINFO_VERSION being 6
Bug: 315182011
Test: On both an MTE-enabled and non-MTE-enabled device:
Test: atest libprocinfo_test bionic-unit-tests bionic-unit-tests-static CtsGwpAsanTestCases gwp_asan_unittest debuggerd_test memtag_stack_dlopen_test
Change-Id: I98f91e9bc9e822e39966c20919bd7d233b5fe937
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 88d02dc..fe7d348 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -1706,7 +1706,7 @@
}
// si->memtag_stack() needs to be called after si->prelink_image() which populates
// the dynamic section.
- if (si->has_min_version(7) && si->memtag_stack()) {
+ if (si->memtag_stack()) {
any_memtag_stack = true;
LD_LOG(kLogDlopen,
"... load_library requesting stack MTE for: realpath=\"%s\", soname=\"%s\"",