Is there any possibility that .text can have any data?

Doug Kwan (關振德) dougkwan@google.com
Tue Dec 15 16:58:00 GMT 2009


Yes. On ARM, it is quite common to put constants in the text section
for PC-relative addressing.

-Doug

2009/12/14 Kim, Eunchan <helpbygrace@gmail.com>:
> Hello.
>
> I'm debugging a core simulator. As i've known, ".text" section can
> only contain instructions, program. But someone told me that .text
> also have constants. Is .rodata section for that kind of constans?
>
> Can .text section have any other data except instrunctions?
>
> Have a good day.
>
> Eunchan
>



More information about the Binutils mailing list