Forum: ARM programming with GCC/GNU tools rodata section

Author: Rajiv K. (Company: learner) (rajiv)
Posted on:

Rate this post
0 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,

Author: Amit (Guest)
Posted on:

Rate this post
0 useful
not useful
use _attribe_ directive

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


Author: Martin T. (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Die Compiler will assign an array with const modifier to the rodata 


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.