OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 63... Line 63...
63 static int all_symbols = 0; 63 static int all_symbols = 0;
64 +static int uncompressed = 0; 64 +static int uncompressed = 0;
65 static int absolute_percpu = 0; 65 static int absolute_percpu = 0;
66 static char symbol_prefix_char = '\0'; 66 static char symbol_prefix_char = '\0';
67 static int base_relative = 0; 67 static int base_relative = 0;
68 @@ -458,6 +459,9 @@ static void write_src(void) 68 @@ -457,6 +458,9 @@ static void write_src(void)
Line 69... Line 69...
69 69
Line 70... Line 70...
70 free(markers); 70 free(markers);
71 71
72 + if (uncompressed) 72 + if (uncompressed)
73 + return; 73 + return;
74 + 74 +
75 output_label("kallsyms_token_table"); 75 output_label("kallsyms_token_table");
76 off = 0; 76 off = 0;
77 for (i = 0; i < 256; i++) { 77 for (i = 0; i < 256; i++) {
78 @@ -516,6 +520,9 @@ static void *find_token(unsigned char *s 78 @@ -515,6 +519,9 @@ static void *find_token(unsigned char *s
Line 79... Line 79...
79 { 79 {
80 int i; 80 int i;
81 81
82 + if (uncompressed) 82 + if (uncompressed)
83 + return NULL; 83 + return NULL;
84 + 84 +
85 for (i = 0; i < len - 1; i++) { 85 for (i = 0; i < len - 1; i++) {
86 if (str[i] == token[0] && str[i+1] == token[1]) 86 if (str[i] == token[0] && str[i+1] == token[1])
87 return &str[i]; 87 return &str[i];
Line 88... Line 88...
88 @@ -588,6 +595,9 @@ static void optimize_result(void) 88 @@ -587,6 +594,9 @@ static void optimize_result(void)
89 { 89 {
90 int i, best; 90 int i, best;
91 91
92 + if (uncompressed) 92 + if (uncompressed)
93 + return; 93 + return;
94 + 94 +
95 /* using the '\0' symbol last allows compress_symbols to use standard 95 /* using the '\0' symbol last allows compress_symbols to use standard
96 * fast string functions */ 96 * fast string functions */
97 for (i = 255; i >= 0; i--) { 97 for (i = 255; i >= 0; i--) {
98 @@ -776,6 +786,8 @@ int main(int argc, char **argv) 98 @@ -775,6 +785,8 @@ int main(int argc, char **argv)
99 symbol_prefix_char = *p; 99 symbol_prefix_char = *p;