Skip to content

Commit 36732bb

Browse files
committed
aot_resolve_object_relocation_group: adapt to LLVM 16
1 parent 25116b4 commit 36732bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/iwasm/compilation/aot_emit_aot_file.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4008,6 +4008,10 @@ aot_resolve_object_relocation_group(AOTObjectData *obj_data,
40084008
|| str_starts_with(relocation->symbol_name, ".LJTI")
40094009
|| str_starts_with(relocation->symbol_name, ".LBB")
40104010
|| str_starts_with(relocation->symbol_name, ".Lswitch.table.")
4011+
#if LLVM_VERSION_MAJOR >= 16
4012+
/* cf. https://reviews.llvm.org/D123264 */
4013+
|| str_starts_with(relocation->symbol_name, ".Lpcrel_hi")
4014+
#endif
40114015
#if LLVM_VERSION_MAJOR >= 19
40124016
/* cf.
40134017
* https://github.com/llvm/llvm-project/pull/95031

0 commit comments

Comments
 (0)