Merge "Explain why we test ifunc variables." am: 5d3c384fa4

Original change: https://android-review.googlesource.com/c/platform/bionic/+/1990811

Change-Id: I2f395eb3ee1f34e5928fb280fd502155879dabfd
This commit is contained in:
Treehugger Robot 2022-02-17 22:56:39 +00:00 committed by Automerger Merge Worker
commit 7628c4797d

View file

@ -258,6 +258,9 @@ TEST(dlfcn, dlopen_vdso) {
dlclose(handle);
}
// HWASan uses an ifunc to describe the location of its shadow memory,
// so even though it's an unusual case, Android needs to support
// "ifunc variables".
TEST(dlfcn, ifunc_variable) {
typedef const char* (*fn_ptr)();