document how to find non-shared string dups
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Jun 2010 11:28:17 +0000 (13:28 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Jun 2010 11:28:17 +0000 (13:28 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
docs/keep_data_small.txt

index 079bac3..01c0d3c 100644 (file)
@@ -145,6 +145,11 @@ one of above methods is not worth the resulting code obfuscation.
 If you have less than ~300 bytes of global data - don't bother.
 
 
+               Finding non-shared duplicated strings
+
+strings busybox | sort | uniq -c | sort -nr
+
+
                gcc's data alignment problem
 
 The following attribute added in vi.c: