From 1a1800ce704794d3526df48394cd5c7ddf2ac5e3 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 31 Jan 2024 21:21:09 -0800 Subject: [PATCH] Document constraint "s" "s" can be used to create an artificial reference for linker garbage collection, or define sections to hold symbol addresses. "S" does not work for a preemptible symbol in GCC while "s" does. --- riscv-c-api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv-c-api.md b/riscv-c-api.md index c2300f6..8dc90c2 100644 --- a/riscv-c-api.md +++ b/riscv-c-api.md @@ -559,6 +559,7 @@ statements, including both RISC-V specific and common operand constraints. | I | 12-bit signed immediate integer operand | | | K | 5-bit unsigned immediate integer operand | | | J | Zero integer immediate operand | | +| s | symbol or label reference with a constant offset | | | vr | Vector register | | | vd | Vector register, excluding v0 | | | vm | Vector register, only v0 | |