--- zzzz-none-000/linux-4.9.276/scripts/kallsyms.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/scripts/kallsyms.c 2023-04-05 08:19:02.000000000 +0000 @@ -61,6 +61,7 @@ static struct sym_entry *table; static unsigned int table_size, table_cnt; static int all_symbols = 0; +static int uncompressed = 0; static int absolute_percpu = 0; static char symbol_prefix_char = '\0'; static int base_relative = 0; @@ -449,6 +450,9 @@ free(markers); + if (uncompressed) + return; + output_label("kallsyms_token_table"); off = 0; for (i = 0; i < 256; i++) { @@ -509,6 +513,9 @@ { int i; + if (uncompressed) + return NULL; + for (i = 0; i < len - 1; i++) { if (str[i] == token[0] && str[i+1] == token[1]) return &str[i]; @@ -581,6 +588,9 @@ { int i, best; + if (uncompressed) + return; + /* using the '\0' symbol last allows compress_symbols to use standard * fast string functions */ for (i = 255; i >= 0; i--) { @@ -769,6 +779,8 @@ symbol_prefix_char = *p; } else if (strcmp(argv[i], "--base-relative") == 0) base_relative = 1; + else if (strcmp(argv[i], "--uncompressed") == 0) + uncompressed = 1; else usage(); }