What have you done to strings!

Tristan Gingold gingold@adacore.com
Wed Oct 29 08:00:00 GMT 2014
> On 28 Oct 2014, at 23:19, Andreas Schwab <schwab@linux-m68k.org> wrote:
> 
> Again, you are 35 years late.  strings has *always* been "smart" by
> default.

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.

Well, IMHO.

Tristan.



More information about the Binutils mailing list