This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
mlocking dynamic variables
- From: Tiago Vignatti <vignatti at c3sl dot ufpr dot br>
- To: binutils at sourceware dot org
- Date: Thu, 19 Jul 2007 00:20:10 -0300
- Subject: mlocking dynamic variables
(If this subject does not belong to this list, please let me know. I'm
new here)
To put the data and code inside a section I'm using the GCC extension
attributes, like:
void f3(void) __attribute__((section ("section")));
My problem is that the attribute 'method' only sees global symbols and
my application have a lot of local and dynamic variables that must be in
a separate section too.
More specific, I want to put (or allocate) in a separate section some
dynamic variables (which lives on the heap) to so then mlock() this on
the physical memory. Any hint? A linker script does this easily?
Could you, linker scripts experts, tell how to do this?
Thanks
--
Tiago Vignatti
C3SL - Centro de Computação Científica e Software Livre
www.c3sl.ufpr.br