EmbDev.net

Forum: ARM programming with GCC/GNU tools rodata section


von Rajiv K. (Company: learner) (rajiv)


Rate this post
useful
not useful
Hi all,

I am new to this gcc-porting field. Please help me in how to make 
compiler emit '.rodata' section as like ARM emits when we have a 
initialised array in C code.

Basically tell me what macros are related that i need to put so for 
rodata section. I too tried by putting some macros but not able to do.

If there is anything else that is also required please tell me that too.

Thanks in advance,
Rajiv

von Amit (Guest)


Rate this post
useful
not useful
use _attribe_ directive

so u can place it in any section where u want....



Amit

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Die Compiler will assign an array with const modifier to the rodata 
input-section.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.