From 9f3451cf9b01cf091b09c49cbf9a8090c034439a Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 1 May 2025 10:16:36 +0900 Subject: [PATCH] aot_resolve_object_relocation_group: adapt to LLVM 16 --- core/iwasm/compilation/aot_emit_aot_file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/iwasm/compilation/aot_emit_aot_file.c b/core/iwasm/compilation/aot_emit_aot_file.c index 3f2133f85..6212e1e5c 100644 --- a/core/iwasm/compilation/aot_emit_aot_file.c +++ b/core/iwasm/compilation/aot_emit_aot_file.c @@ -3999,6 +3999,10 @@ aot_resolve_object_relocation_group(AOTObjectData *obj_data, || str_starts_with(relocation->symbol_name, ".LJTI") || str_starts_with(relocation->symbol_name, ".LBB") || str_starts_with(relocation->symbol_name, ".Lswitch.table.") +#if LLVM_VERSION_MAJOR >= 16 + /* cf. https://reviews.llvm.org/D123264 */ + || str_starts_with(relocation->symbol_name, ".Lpcrel_hi") +#endif #if LLVM_VERSION_MAJOR >= 19 /* cf. * https://github.com/llvm/llvm-project/pull/95031