5
5
* This software may be used and distributed according to the terms
6
6
* of the GNU General Public License, incorporated herein by reference.
7
7
*
8
- * Usage: kallsyms [--all-symbols] [--absolute-percpu]
9
- * [--lto-clang] in.map > out.S
8
+ * Usage: kallsyms [--all-symbols] [--absolute-percpu] in.map > out.S
10
9
*
11
10
* Table compression uses all the unused char codes on the symbols and
12
11
* maps these to the most used substrings (tokens). For instance, it might
@@ -62,7 +61,6 @@ static struct sym_entry **table;
62
61
static unsigned int table_size , table_cnt ;
63
62
static int all_symbols ;
64
63
static int absolute_percpu ;
65
- static int lto_clang ;
66
64
67
65
static int token_profit [0x10000 ];
68
66
@@ -73,8 +71,7 @@ static unsigned char best_table_len[256];
73
71
74
72
static void usage (void )
75
73
{
76
- fprintf (stderr , "Usage: kallsyms [--all-symbols] [--absolute-percpu] "
77
- "[--lto-clang] in.map > out.S\n" );
74
+ fprintf (stderr , "Usage: kallsyms [--all-symbols] [--absolute-percpu] in.map > out.S\n" );
78
75
exit (1 );
79
76
}
80
77
@@ -344,25 +341,6 @@ static bool symbol_absolute(const struct sym_entry *s)
344
341
return s -> percpu_absolute ;
345
342
}
346
343
347
- static void cleanup_symbol_name (char * s )
348
- {
349
- char * p ;
350
-
351
- /*
352
- * ASCII[.] = 2e
353
- * ASCII[0-9] = 30,39
354
- * ASCII[A-Z] = 41,5a
355
- * ASCII[_] = 5f
356
- * ASCII[a-z] = 61,7a
357
- *
358
- * As above, replacing the first '.' in ".llvm." with '\0' does not
359
- * affect the main sorting, but it helps us with subsorting.
360
- */
361
- p = strstr (s , ".llvm." );
362
- if (p )
363
- * p = '\0' ;
364
- }
365
-
366
344
static int compare_names (const void * a , const void * b )
367
345
{
368
346
int ret ;
@@ -526,10 +504,6 @@ static void write_src(void)
526
504
output_address (relative_base );
527
505
printf ("\n" );
528
506
529
- if (lto_clang )
530
- for (i = 0 ; i < table_cnt ; i ++ )
531
- cleanup_symbol_name ((char * )table [i ]-> sym );
532
-
533
507
sort_symbols_by_name ();
534
508
output_label ("kallsyms_seqs_of_names" );
535
509
for (i = 0 ; i < table_cnt ; i ++ )
@@ -807,7 +781,6 @@ int main(int argc, char **argv)
807
781
static const struct option long_options [] = {
808
782
{"all-symbols" , no_argument , & all_symbols , 1 },
809
783
{"absolute-percpu" , no_argument , & absolute_percpu , 1 },
810
- {"lto-clang" , no_argument , & lto_clang , 1 },
811
784
{},
812
785
};
813
786
0 commit comments