Skip to content

Commit ac2fe55

Browse files
authored
aot_resolve_object_relocation_group: adapt to LLVM 16 (#4250)
cf. https://reviews.llvm.org/D123264
1 parent ea417d7 commit ac2fe55

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/iwasm/compilation/aot_emit_aot_file.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4007,8 +4007,12 @@ aot_resolve_object_relocation_group(AOTObjectData *obj_data,
40074007
&& (str_starts_with(relocation->symbol_name, ".LCPI")
40084008
|| str_starts_with(relocation->symbol_name, ".LJTI")
40094009
|| str_starts_with(relocation->symbol_name, ".LBB")
4010-
|| str_starts_with(relocation->symbol_name,
4011-
".Lswitch.table."))) {
4010+
|| 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
4015+
)) {
40124016
/* change relocation->relocation_addend and
40134017
relocation->symbol_name */
40144018
LLVMSectionIteratorRef contain_section;

0 commit comments

Comments
 (0)