diff --git a/src/abi.md b/src/abi.md index 8dbc05785d..750d7814b1 100644 --- a/src/abi.md +++ b/src/abi.md @@ -98,9 +98,11 @@ The `link_section` attribute uses the [MetaNameValueStr] syntax to specify the s ```rust,no_run +# #[cfg(target_os = "linux")] { #[unsafe(no_mangle)] #[unsafe(link_section = ".example_section")] pub static VAR1: u32 = 1; +# } ``` r[abi.link_section.unsafe]