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
@@ -63,7 +62,6 @@ static struct sym_entry **table;
63
62
static unsigned int table_size , table_cnt ;
64
63
static int all_symbols ;
65
64
static int absolute_percpu ;
66
- static int lto_clang ;
67
65
68
66
static int token_profit [0x10000 ];
69
67
@@ -74,8 +72,7 @@ static unsigned char best_table_len[256];
74
72
75
73
static void usage (void )
76
74
{
77
- fprintf (stderr , "Usage: kallsyms [--all-symbols] [--absolute-percpu] "
78
- "[--lto-clang] in.map > out.S\n" );
75
+ fprintf (stderr , "Usage: kallsyms [--all-symbols] [--absolute-percpu] in.map > out.S\n" );
79
76
exit (1 );
80
77
}
81
78
@@ -345,25 +342,6 @@ static int symbol_absolute(const struct sym_entry *s)
345
342
return s -> percpu_absolute ;
346
343
}
347
344
348
- static void cleanup_symbol_name (char * s )
349
- {
350
- char * p ;
351
-
352
- /*
353
- * ASCII[.] = 2e
354
- * ASCII[0-9] = 30,39
355
- * ASCII[A-Z] = 41,5a
356
- * ASCII[_] = 5f
357
- * ASCII[a-z] = 61,7a
358
- *
359
- * As above, replacing the first '.' in ".llvm." with '\0' does not
360
- * affect the main sorting, but it helps us with subsorting.
361
- */
362
- p = strstr (s , ".llvm." );
363
- if (p )
364
- * p = '\0' ;
365
- }
366
-
367
345
static int compare_names (const void * a , const void * b )
368
346
{
369
347
int ret ;
@@ -528,10 +506,6 @@ static void write_src(void)
528
506
output_address (relative_base );
529
507
printf ("\n" );
530
508
531
- if (lto_clang )
532
- for (i = 0 ; i < table_cnt ; i ++ )
533
- cleanup_symbol_name ((char * )table [i ]-> sym );
534
-
535
509
sort_symbols_by_name ();
536
510
output_label ("kallsyms_seqs_of_names" );
537
511
for (i = 0 ; i < table_cnt ; i ++ )
@@ -808,7 +782,6 @@ int main(int argc, char **argv)
808
782
static const struct option long_options [] = {
809
783
{"all-symbols" , no_argument , & all_symbols , 1 },
810
784
{"absolute-percpu" , no_argument , & absolute_percpu , 1 },
811
- {"lto-clang" , no_argument , & lto_clang , 1 },
812
785
{},
813
786
};
814
787
0 commit comments