This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: What have you done to strings!
- From: Tristan Gingold <gingold at adacore dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Russell Fulton <r dot fulton at auckland dot ac dot nz>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 29 Oct 2014 11:20:21 +0100
- Subject: Re: What have you done to strings!
- Authentication-results: sourceware.org; auth=none
- References: <282DFD25-A41D-469C-834E-570AC1EF54B5 at auckland dot ac dot nz> <87sii7j0qd dot fsf at igel dot home> <7A77C375-DD28-499D-AFE6-AFD783502CB8 at adacore dot com> <mvmzjcfl120 dot fsf at hawking dot suse dot de> <623A53FB-08A9-4C05-8DE0-AA4370F1FD56 at adacore dot com> <mvmppdbkyi5 dot fsf at hawking dot suse dot de>
> On 29 Oct 2014, at 10:37, Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> Tristan Gingold <gingold@adacore.com> writes:
>
>>> On 29 Oct 2014, at 09:42, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>>
>>> Tristan Gingold <gingold@adacore.com> writes:
>>>
>>>> Nowadays (and since 'const' is part of C), strings and const are in
>>>> .text;
>>>
>>> Nowadays they are in .rodata.
>>
>> Ok, in the code segment if you prefer. But the point is that 35 years ago
>> they would be displayed by strings, and nowadays you need strings -a.
>
> strings is looking at .rodata by default. In fact, strings looks at any
> section that is allocated, loaded and has contents, which even includes
> .text.
Point taken.