bytecodealliance / bytecodealliance/wasmtime

cranelift-module: Support marking data object as read-only C string

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

Description

#### Feature

See title

#### Benefit

This would allow the linker to deduplicate the strings. In addition some linker don't like mixing attributes between sections that get merged, so if the user of cg_clif specified that the data object needs to end up in `__TEXT/__cstring`, we will need to respect the `cstring_literals` section type likely specified by the user too.

#### Implementation

cranelift-jit can ignore this and cranelift-object can use `SectionKind::ReadOnlyString`.

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.