Skip to content

Invalid relocation type 282 for AOT on aarch64 #867

@robinvanemden

Description

@robinvanemden

On compiling to WASM using

WASM_FLAGS = --sysroot=${WASM_SYSROOT} -O3 -fno-exceptions -mbulk-memory -m32 -fno-rtti -ffast-math -fno-math-errno

and then compiling AOT with either wamrc_v0 (May 2021) and wamrc_v1 (current version, 12/5/2021)

wamrc_v0 --target=aarch64 --enable-bulk-memory -o model.aarch64_0.aot mode.wasm
wamrc_v1 --target=aarch64                      -o model.aarch64_1.aot model.wasm

we receive the following error when running the model.aarch64_1 compiled by the current wamrc_v1 version with a up to date WAMR application

Error: Load wasm runtime_core.module failed. error: Load relocation section failed: invalid relocation type 282.

The older wamrc_v0 generated model.aarch64_0.aot does not generate this error when it is run. Nor does compiling AOT for targets x64 and armv7 with either wamrc_v0 (May 2021) or wamrc_v1 (current version, 12/5/2021).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions