Skip to content

Commit 0a8994a

Browse files
authored
aot_resolve_object_relocation_group: adapt to LLVM 19 (#4254)
cf. llvm/llvm-project#95031 llvm/llvm-project#89693
1 parent f88718d commit 0a8994a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/iwasm/compilation/aot_emit_aot_file.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4011,6 +4011,15 @@ aot_resolve_object_relocation_group(AOTObjectData *obj_data,
40114011
#if LLVM_VERSION_MAJOR >= 16
40124012
/* cf. https://reviews.llvm.org/D123264 */
40134013
|| str_starts_with(relocation->symbol_name, ".Lpcrel_hi")
4014+
#endif
4015+
#if LLVM_VERSION_MAJOR >= 19
4016+
/* cf.
4017+
* https://github.com/llvm/llvm-project/pull/95031
4018+
* https://github.com/llvm/llvm-project/pull/89693
4019+
*
4020+
* note: the trailing space in ".L0 " is intentional. */
4021+
|| !strcmp(relocation->symbol_name, "")
4022+
|| !strcmp(relocation->symbol_name, ".L0 ")
40144023
#endif
40154024
)) {
40164025
/* change relocation->relocation_addend and

0 commit comments

Comments
 (0)