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: What have you done to strings!


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.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


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