From 1c462971fec7efdb7d92424bfce7653ddacb7b9d Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 18 Aug 2022 21:15:37 -0700 Subject: Example variable in specific linker sections --- src/alloc.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/alloc.rs') 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(); -- cgit v1.2.1