Closed
Description
The feature gate for the issue is #![feature(asm_sym)]
.
Summary
This feature adds a sym <path>
operand type to asm!
and global_asm!
.
<path>
must refer to afn
orstatic
.- A mangled symbol name referring to the item is substituted into the asm template string.
- The substituted string does not include any modifiers (e.g. GOT, PLT, relocations, etc).
<path>
is allowed to point to a#[thread_local]
static, in which case the asm code can combine the symbol with relocations (e.g.@plt
,@TPOFF
) to read from thread-local data.
Status
Blocked on support for sym
in global_asm!
.
Metadata
Metadata
Assignees
Labels
Area: Inline assembly (`asm!(…)`)Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(asm)]` (not `llvm_asm`)Status: This is ready to stabilize; it may need a stabilization report and a PRRelevant to the language team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.