Merge pull request #4573 from jammar1/jammar1/android-xip

Add Android macro check for indirect mode
This commit is contained in:
Marcin Kolny 2025-08-20 20:51:53 +02:00 committed by GitHub
commit 088197c0c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3900,7 +3900,8 @@ load_relocation_section(const uint8 *buf, const uint8 *buf_end,
#endif
) {
#if !defined(BH_PLATFORM_LINUX) && !defined(BH_PLATFORM_LINUX_SGX) \
&& !defined(BH_PLATFORM_DARWIN) && !defined(BH_PLATFORM_WINDOWS)
&& !defined(BH_PLATFORM_DARWIN) && !defined(BH_PLATFORM_WINDOWS) \
&& !defined(BH_PLATFORM_ANDROID)
if (module->is_indirect_mode) {
set_error_buf(error_buf, error_buf_size,
"cannot apply relocation to text section "