This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Is there any possibility that .text can have any data?
- From: =?big5?b?RG91ZyBLd2FuICjD9q62vHcp?= <dougkwan at google dot com>
- To: "Kim, Eunchan" <helpbygrace at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 15 Dec 2009 08:58:24 -0800
- Subject: Re: Is there any possibility that .text can have any data?
- References: <507f7d510912142204y35d6de25y9cdc8c8bbf37f877@mail.gmail.com>
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
>