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]

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


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
>


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