aot_resolve_object_relocation_group: adapt to LLVM 19

cf.
https://github.com/llvm/llvm-project/pull/95031
https://github.com/llvm/llvm-project/pull/89693
This commit is contained in:
YAMAMOTO Takashi 2025-05-01 08:54:52 +09:00
parent b8bd1ef274
commit 4d73ab0bbc

View File

@ -4011,6 +4011,15 @@ aot_resolve_object_relocation_group(AOTObjectData *obj_data,
#if LLVM_VERSION_MAJOR >= 16 #if LLVM_VERSION_MAJOR >= 16
/* cf. https://reviews.llvm.org/D123264 */ /* cf. https://reviews.llvm.org/D123264 */
|| str_starts_with(relocation->symbol_name, ".Lpcrel_hi") || str_starts_with(relocation->symbol_name, ".Lpcrel_hi")
#endif
#if LLVM_VERSION_MAJOR >= 19
/* cf.
* https://github.com/llvm/llvm-project/pull/95031
* https://github.com/llvm/llvm-project/pull/89693
*
* note: the trailing space in ".L0 " is intentional. */
|| !strcmp(relocation->symbol_name, "")
|| !strcmp(relocation->symbol_name, ".L0 ")
#endif #endif
)) { )) {
/* change relocation->relocation_addend and /* change relocation->relocation_addend and