Wang-Zhongqi added the bug label to Issue #8255.
Wang-Zhongqi opened issue #8255:
Test Case
(module (func (export "ceil") (param $x f32) (result f32) (f32.ceil (local.get $x))) (func (export "floor") (param $x f32) (result f32) (f32.floor (local.get $x))) (func (export "trunc") (param $x f32) (result f32) (f32.trunc (local.get $x))) (func (export "nearest") (param $x f32) (result f32) (f32.nearest (local.get $x))) )
Steps to Reproduce
- TODO: first, disable sse support
- TODO: second, wasmtime compile -Ccache=n -o test.cwasm test.wasm
- TODO: objdump -r test.cwasm
Expected Results
The expected relocation type is R_X86_64_64, indicating a 64-bit absolute relocation.
Actual Results
The actual relocation type is 8-bit.
Versions and Environment
Wasmtime version or commit: 16.0
Operating system: ubuntu 20.04
Architecture: X86_64
Extra Info
This could be 64, not 8.

alexcrichton commented on issue #8255:
Yeah looks like a bug, thanks! Would you be up for sending a PR to update that constant? I believe an update will be required here as well.
alexcrichton closed issue #8255:
Test Case
(module (func (export "ceil") (param $x f32) (result f32) (f32.ceil (local.get $x))) (func (export "floor") (param $x f32) (result f32) (f32.floor (local.get $x))) (func (export "trunc") (param $x f32) (result f32) (f32.trunc (local.get $x))) (func (export "nearest") (param $x f32) (result f32) (f32.nearest (local.get $x))) )
Steps to Reproduce
- TODO: first, disable sse support
- TODO: second, wasmtime compile -Ccache=n -o test.cwasm test.wasm
- TODO: objdump -r test.cwasm
Expected Results
The expected relocation type is R_X86_64_64, indicating a 64-bit absolute relocation.
Actual Results
The actual relocation type is 8-bit.
Versions and Environment
Wasmtime version or commit: 16.0
Operating system: ubuntu 20.04
Architecture: X86_64
Extra Info
This could be 64, not 8.

Last updated: Feb 28 2025 at 01:30 UTC