diff options
author | Christian Cunningham <cc@localhost> | 2022-08-18 21:15:37 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-08-18 21:15:37 -0700 |
commit | 1c462971fec7efdb7d92424bfce7653ddacb7b9d (patch) | |
tree | cdce448029a0a11b0cc85581b96a268416e54768 /src/alloc.rs | |
parent | ffdcd4524f6940bb1d6d40b45eb7bf8c6f756223 (diff) |
Example variable in specific linker sections
Diffstat (limited to 'src/alloc.rs')
-rw-r--r-- | src/alloc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/alloc.rs b/src/alloc.rs index 4fe44ee..fd22c67 100644 --- a/src/alloc.rs +++ b/src/alloc.rs @@ -89,4 +89,5 @@ impl Debug for CharAllocator { } } +#[link_section = ".data.alloc"] pub static CHAR_ALLOCATOR: CharAllocator = CharAllocator::new(); |