mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-12-09 07:43:54 +00:00
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:
parent
b8bd1ef274
commit
4d73ab0bbc
|
|
@ -4011,6 +4011,15 @@ aot_resolve_object_relocation_group(AOTObjectData *obj_data,
|
|||
#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
|
||||
* 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
|
||||
)) {
|
||||
/* change relocation->relocation_addend and
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user