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 079bac3a6de7ea99bf16021dd8dfd3718d83c5e8..01c0d3c7b00d30caba0948430c23f3a6cac2f508 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: