bytecodealliance / bytecodealliance/wasmtime

gdb complains about loadable section outside of ELF segments

Open
#9,300 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

### Test Case

Any wasm module.

### Steps to Reproduce

* `wasmtime run -Ddebug-info=y /path/to/wasm`
* `gdb -p $(pidof wasmtime)`

### Expected Results

Gdb doesn't emit any warnings.

### Actual Results

Gdb emits the following warnings:

```
warning: Loadable section ".wasmtime.engine" outside of ELF segments
in
warning: Loadable section ".wasmtime.bti" outside of ELF segments
in
warning: Loadable section ".eh_frame" outside of ELF segments
in
warning: Loadable section ".wasmtime.addrmap" outside of ELF segments
in
warning: Loadable section ".wasmtime.traps" outside of ELF segments
in
warning: Loadable section ".rodata.wasm" outside of ELF segments
in
warning: Loadable section ".name.wasm" outside of ELF segments
in
warning: Loadable section ".wasmtime.info" outside of ELF segments
in
```

### Versions and Environment

Wasmtime version or commit: v25.0.0

Operating system: Linux

Architecture: x86_64

### Extra Info

This can probably be fixed by either clearing the loadable flag of all these sections or adding them to actual segments in case they are meant to be used at runtime like in the case of `.eh_frame` and `.rodata.wasm`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.