Skip to content

Missing support for R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX #4479

@Lukasdoe

Description

@Lukasdoe

When compiling for AOT on a Intel Xeon Gold 6430, Ubuntu 24.04.2 LTS x86_64 host, I get the runtime error "Load relocation section failed: invalid relocation type 42."

Subject of the issue

Relocation types R_X86_64_GOTPCRELX (= 41) and R_X86_64_REX_GOTPCRELX (= 42) are not supported in aot_reloc_x86_64.c.

Your environment

  • OS: Ubuntu 24.04.2 LTS x86_64
  • Host: PowerEdge R760
  • Kernel: 6.8.0-60-generic
  • CPU: Intel Xeon Gold 6430 (64) @ 3.400GHz
  • WAMR / IWASM: 2.3.1

Steps to reproduce

wamrc -o test.aot test.wasm
iwasm ./test.aot

Expected behavior

That is runs.

Actual behavior

It aborts execution with the runtime error.

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