This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]