EmbDev.net

Forum: ARM programming with GCC/GNU tools rodata section

Author: Rajiv Kumar (Company: learner) (rajiv)
Posted on:

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
Author: Amit (Guest)
Posted on:

use _attribe_ directive

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



Amit
Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Die Compiler will assign an array with const modifier to the rodata
input-section.

Reply

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]




Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.


webmaster@embdev.netContactAdvertising on EmbDev.net