bionic: Add page size 16KiB compat tests

The test check whether an ELF built for 4KiB max-page-size can be
loaded on a 16KiB page-sized device.

This test is only run on devices with 16KiB base page size.

Bug: 339709616
Test: adb shell setprop bionic.linker.16kb.app_compat.enabled [true|false]
Test: atest bionic-unit-tests
Test: atest CtsBionicTestCases
Change-Id: Ibd8a1c2e2d59bf13d7328377d012430c16b8e76c
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
diff --git a/tests/Android.bp b/tests/Android.bp
index 0bd4a32..f5f3e31 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -815,6 +815,7 @@
         "dlfcn_test.cpp",
         "execinfo_test.cpp",
         "link_test.cpp",
+        "page_size_16kib_compat_test.cpp",
         "pthread_dlfcn_test.cpp",
     ],
     static_libs: [
@@ -823,6 +824,7 @@
     ],
     include_dirs: [
         "bionic/libc",
+        "bionic/tests/libs",
     ],
     shared: {
         enabled: false,
@@ -970,6 +972,7 @@
         "libtest_dt_runpath_d",
         "libtest_dt_runpath_x",
         "libtest_dt_runpath_y",
+        "libtest_elf_max_page_size_4kib",
         "libtest_elftls_dynamic",
         "libtest_elftls_dynamic_filler_1",
         "libtest_elftls_dynamic_filler_2",