Skip to content

wast::wasmer::stack_overflow_sret::llvm::llvm fails on rv64gc and loongarch64 with LLVM #6032

@marxin

Description

@marxin

It fails due to a LLVM optimization where a zero initialization of adjacent locals is replaced with call to memset function:

  stderr ───
    Error: Failed directives on tests/wast/wasmer/stack-overflow-sret.wast:
      • instantiation failed with: Compilation error: relocation Relocation { kind: Unknown, encoding: Generic, size: 0, target: Symbol(SymbolIndex(6)), addend: 0, implicit_addend: false, flags: Elf { r_type: 110 } } targets unknown symbol 'Symbol { name: "memset", address: 0, size: 0, kind: Unknown, section: Undefined, scope: Unknown, weak: false, flags: Elf { st_info: 16, st_other: 0 } }' (1:1)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions