This is the mail archive of the
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 09:00: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>
> On 28 Oct 2014, at 23:19, Andreas Schwab <firstname.lastname@example.org> wrote:
> Again, you are 35 years late. strings has *always* been "smart" by
Right, but I won't be against making -a the default.
First, it would still be posix compliant (-a is implementation defined).
Second, it is safer and easier to implement.
Third, I suppose the use of strings in scripts is tiny.
Fourth, 'strings -a' is more useful than 'strings'. 35 years ago, there
was only code in .text. Nowadays (and since 'const' is part of C),
strings and const are in .text; so having -a the default would be more
compatible with the old behaviour.