kallsyms.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. /* Generate assembler source containing symbol information
  2. *
  3. * Copyright 2002 by Kai Germaschewski
  4. *
  5. * This software may be used and distributed according to the terms
  6. * of the GNU General Public License, incorporated herein by reference.
  7. *
  8. * Usage: nm -n vmlinux | scripts/kallsyms [--all-symbols] > symbols.S
  9. *
  10. * Table compression uses all the unused char codes on the symbols and
  11. * maps these to the most used substrings (tokens). For instance, it might
  12. * map char code 0xF7 to represent "write_" and then in every symbol where
  13. * "write_" appears it can be replaced by 0xF7, saving 5 bytes.
  14. * The used codes themselves are also placed in the table so that the
  15. * decompresion can work without "special cases".
  16. * Applied to kernel symbols, this usually produces a compression ratio
  17. * of about 50%.
  18. *
  19. */
  20. #include <stdio.h>
  21. #include <stdlib.h>
  22. #include <string.h>
  23. #include <ctype.h>
  24. #ifndef ARRAY_SIZE
  25. #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
  26. #endif
  27. #define KSYM_NAME_LEN 128
  28. struct sym_entry {
  29. unsigned long long addr;
  30. unsigned int len;
  31. unsigned int start_pos;
  32. unsigned char *sym;
  33. unsigned int percpu_absolute;
  34. };
  35. struct addr_range {
  36. const char *start_sym, *end_sym;
  37. unsigned long long start, end;
  38. };
  39. static unsigned long long _text;
  40. static struct addr_range text_ranges[] = {
  41. { "_stext", "_etext" },
  42. { "_sinittext", "_einittext" },
  43. { "_stext_l1", "_etext_l1" }, /* Blackfin on-chip L1 inst SRAM */
  44. { "_stext_l2", "_etext_l2" }, /* Blackfin on-chip L2 SRAM */
  45. };
  46. #define text_range_text (&text_ranges[0])
  47. #define text_range_inittext (&text_ranges[1])
  48. static struct addr_range percpu_range = {
  49. "__per_cpu_start", "__per_cpu_end", -1ULL, 0
  50. };
  51. static struct sym_entry *table;
  52. static unsigned int table_size, table_cnt;
  53. static int all_symbols = 0;
  54. static int absolute_percpu = 0;
  55. static char symbol_prefix_char = '\0';
  56. static unsigned long long kernel_start_addr = 0;
  57. int token_profit[0x10000];
  58. /* the table that holds the result of the compression */
  59. unsigned char best_table[256][2];
  60. unsigned char best_table_len[256];
  61. static void usage(void)
  62. {
  63. fprintf(stderr, "Usage: kallsyms [--all-symbols] "
  64. "[--symbol-prefix=<prefix char>] "
  65. "[--page-offset=<CONFIG_PAGE_OFFSET>] "
  66. "< in.map > out.S\n");
  67. exit(1);
  68. }
  69. /*
  70. * This ignores the intensely annoying "mapping symbols" found
  71. * in ARM ELF files: $a, $t and $d.
  72. */
  73. static inline int is_arm_mapping_symbol(const char *str)
  74. {
  75. return str[0] == '$' && strchr("atd", str[1])
  76. && (str[2] == '\0' || str[2] == '.');
  77. }
  78. static int check_symbol_range(const char *sym, unsigned long long addr,
  79. struct addr_range *ranges, int entries)
  80. {
  81. size_t i;
  82. struct addr_range *ar;
  83. for (i = 0; i < entries; ++i) {
  84. ar = &ranges[i];
  85. if (strcmp(sym, ar->start_sym) == 0) {
  86. ar->start = addr;
  87. return 0;
  88. } else if (strcmp(sym, ar->end_sym) == 0) {
  89. ar->end = addr;
  90. return 0;
  91. }
  92. }
  93. return 1;
  94. }
  95. static int read_symbol(FILE *in, struct sym_entry *s)
  96. {
  97. char str[500];
  98. char *sym, stype;
  99. int rc;
  100. rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str);
  101. if (rc != 3) {
  102. if (rc != EOF && fgets(str, 500, in) == NULL)
  103. fprintf(stderr, "Read error or end of file.\n");
  104. return -1;
  105. }
  106. if (strlen(str) > KSYM_NAME_LEN) {
  107. fprintf(stderr, "Symbol %s too long for kallsyms (%zu vs %d).\n"
  108. "Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n",
  109. str, strlen(str), KSYM_NAME_LEN);
  110. return -1;
  111. }
  112. sym = str;
  113. /* skip prefix char */
  114. if (symbol_prefix_char && str[0] == symbol_prefix_char)
  115. sym++;
  116. /* Ignore most absolute/undefined (?) symbols. */
  117. if (strcmp(sym, "_text") == 0)
  118. _text = s->addr;
  119. else if (check_symbol_range(sym, s->addr, text_ranges,
  120. ARRAY_SIZE(text_ranges)) == 0)
  121. /* nothing to do */;
  122. else if (toupper(stype) == 'A')
  123. {
  124. /* Keep these useful absolute symbols */
  125. if (strcmp(sym, "__kernel_syscall_via_break") &&
  126. strcmp(sym, "__kernel_syscall_via_epc") &&
  127. strcmp(sym, "__kernel_sigtramp") &&
  128. strcmp(sym, "__gp"))
  129. return -1;
  130. }
  131. else if (toupper(stype) == 'U' ||
  132. is_arm_mapping_symbol(sym))
  133. return -1;
  134. /* exclude also MIPS ELF local symbols ($L123 instead of .L123) */
  135. else if (str[0] == '$')
  136. return -1;
  137. /* exclude debugging symbols */
  138. else if (stype == 'N')
  139. return -1;
  140. /* include the type field in the symbol name, so that it gets
  141. * compressed together */
  142. s->len = strlen(str) + 1;
  143. s->sym = malloc(s->len + 1);
  144. if (!s->sym) {
  145. fprintf(stderr, "kallsyms failure: "
  146. "unable to allocate required amount of memory\n");
  147. exit(EXIT_FAILURE);
  148. }
  149. strcpy((char *)s->sym + 1, str);
  150. s->sym[0] = stype;
  151. s->percpu_absolute = 0;
  152. /* Record if we've found __per_cpu_start/end. */
  153. check_symbol_range(sym, s->addr, &percpu_range, 1);
  154. return 0;
  155. }
  156. static int symbol_in_range(struct sym_entry *s, struct addr_range *ranges,
  157. int entries)
  158. {
  159. size_t i;
  160. struct addr_range *ar;
  161. for (i = 0; i < entries; ++i) {
  162. ar = &ranges[i];
  163. if (s->addr >= ar->start && s->addr <= ar->end)
  164. return 1;
  165. }
  166. return 0;
  167. }
  168. static int symbol_valid(struct sym_entry *s)
  169. {
  170. /* Symbols which vary between passes. Passes 1 and 2 must have
  171. * identical symbol lists. The kallsyms_* symbols below are only added
  172. * after pass 1, they would be included in pass 2 when --all-symbols is
  173. * specified so exclude them to get a stable symbol list.
  174. */
  175. static char *special_symbols[] = {
  176. "kallsyms_addresses",
  177. "kallsyms_num_syms",
  178. "kallsyms_names",
  179. "kallsyms_markers",
  180. "kallsyms_token_table",
  181. "kallsyms_token_index",
  182. /* Exclude linker generated symbols which vary between passes */
  183. "_SDA_BASE_", /* ppc */
  184. "_SDA2_BASE_", /* ppc */
  185. NULL };
  186. static char *special_suffixes[] = {
  187. "_veneer", /* arm */
  188. NULL };
  189. int i;
  190. char *sym_name = (char *)s->sym + 1;
  191. if (s->addr < kernel_start_addr)
  192. return 0;
  193. /* skip prefix char */
  194. if (symbol_prefix_char && *sym_name == symbol_prefix_char)
  195. sym_name++;
  196. /* if --all-symbols is not specified, then symbols outside the text
  197. * and inittext sections are discarded */
  198. if (!all_symbols) {
  199. if (symbol_in_range(s, text_ranges,
  200. ARRAY_SIZE(text_ranges)) == 0)
  201. return 0;
  202. /* Corner case. Discard any symbols with the same value as
  203. * _etext _einittext; they can move between pass 1 and 2 when
  204. * the kallsyms data are added. If these symbols move then
  205. * they may get dropped in pass 2, which breaks the kallsyms
  206. * rules.
  207. */
  208. if ((s->addr == text_range_text->end &&
  209. strcmp(sym_name,
  210. text_range_text->end_sym)) ||
  211. (s->addr == text_range_inittext->end &&
  212. strcmp(sym_name,
  213. text_range_inittext->end_sym)))
  214. return 0;
  215. }
  216. /* Exclude symbols which vary between passes. */
  217. for (i = 0; special_symbols[i]; i++)
  218. if (strcmp(sym_name, special_symbols[i]) == 0)
  219. return 0;
  220. for (i = 0; special_suffixes[i]; i++) {
  221. int l = strlen(sym_name) - strlen(special_suffixes[i]);
  222. if (l >= 0 && strcmp(sym_name + l, special_suffixes[i]) == 0)
  223. return 0;
  224. }
  225. return 1;
  226. }
  227. static void read_map(FILE *in)
  228. {
  229. while (!feof(in)) {
  230. if (table_cnt >= table_size) {
  231. table_size += 10000;
  232. table = realloc(table, sizeof(*table) * table_size);
  233. if (!table) {
  234. fprintf(stderr, "out of memory\n");
  235. exit (1);
  236. }
  237. }
  238. if (read_symbol(in, &table[table_cnt]) == 0) {
  239. table[table_cnt].start_pos = table_cnt;
  240. table_cnt++;
  241. }
  242. }
  243. }
  244. static void output_label(char *label)
  245. {
  246. if (symbol_prefix_char)
  247. printf(".globl %c%s\n", symbol_prefix_char, label);
  248. else
  249. printf(".globl %s\n", label);
  250. printf("\tALGN\n");
  251. if (symbol_prefix_char)
  252. printf("%c%s:\n", symbol_prefix_char, label);
  253. else
  254. printf("%s:\n", label);
  255. }
  256. /* uncompress a compressed symbol. When this function is called, the best table
  257. * might still be compressed itself, so the function needs to be recursive */
  258. static int expand_symbol(unsigned char *data, int len, char *result)
  259. {
  260. int c, rlen, total=0;
  261. while (len) {
  262. c = *data;
  263. /* if the table holds a single char that is the same as the one
  264. * we are looking for, then end the search */
  265. if (best_table[c][0]==c && best_table_len[c]==1) {
  266. *result++ = c;
  267. total++;
  268. } else {
  269. /* if not, recurse and expand */
  270. rlen = expand_symbol(best_table[c], best_table_len[c], result);
  271. total += rlen;
  272. result += rlen;
  273. }
  274. data++;
  275. len--;
  276. }
  277. *result=0;
  278. return total;
  279. }
  280. static int symbol_absolute(struct sym_entry *s)
  281. {
  282. return s->percpu_absolute;
  283. }
  284. static void write_src(void)
  285. {
  286. unsigned int i, k, off;
  287. unsigned int best_idx[256];
  288. unsigned int *markers;
  289. char buf[KSYM_NAME_LEN];
  290. printf("#include <asm/types.h>\n");
  291. printf("#if BITS_PER_LONG == 64\n");
  292. printf("#define PTR .quad\n");
  293. printf("#define ALGN .align 8\n");
  294. printf("#else\n");
  295. printf("#define PTR .long\n");
  296. printf("#define ALGN .align 4\n");
  297. printf("#endif\n");
  298. printf("\t.section .rodata, \"a\"\n");
  299. /* Provide proper symbols relocatability by their '_text'
  300. * relativeness. The symbol names cannot be used to construct
  301. * normal symbol references as the list of symbols contains
  302. * symbols that are declared static and are private to their
  303. * .o files. This prevents .tmp_kallsyms.o or any other
  304. * object from referencing them.
  305. */
  306. output_label("kallsyms_addresses");
  307. for (i = 0; i < table_cnt; i++) {
  308. if (!symbol_absolute(&table[i])) {
  309. if (_text <= table[i].addr)
  310. printf("\tPTR\t_text + %#llx\n",
  311. table[i].addr - _text);
  312. else
  313. printf("\tPTR\t_text - %#llx\n",
  314. _text - table[i].addr);
  315. } else {
  316. printf("\tPTR\t%#llx\n", table[i].addr);
  317. }
  318. }
  319. printf("\n");
  320. output_label("kallsyms_num_syms");
  321. printf("\tPTR\t%d\n", table_cnt);
  322. printf("\n");
  323. /* table of offset markers, that give the offset in the compressed stream
  324. * every 256 symbols */
  325. markers = malloc(sizeof(unsigned int) * ((table_cnt + 255) / 256));
  326. if (!markers) {
  327. fprintf(stderr, "kallsyms failure: "
  328. "unable to allocate required memory\n");
  329. exit(EXIT_FAILURE);
  330. }
  331. output_label("kallsyms_names");
  332. off = 0;
  333. for (i = 0; i < table_cnt; i++) {
  334. if ((i & 0xFF) == 0)
  335. markers[i >> 8] = off;
  336. printf("\t.byte 0x%02x", table[i].len);
  337. for (k = 0; k < table[i].len; k++)
  338. printf(", 0x%02x", table[i].sym[k]);
  339. printf("\n");
  340. off += table[i].len + 1;
  341. }
  342. printf("\n");
  343. output_label("kallsyms_markers");
  344. for (i = 0; i < ((table_cnt + 255) >> 8); i++)
  345. printf("\tPTR\t%d\n", markers[i]);
  346. printf("\n");
  347. free(markers);
  348. output_label("kallsyms_token_table");
  349. off = 0;
  350. for (i = 0; i < 256; i++) {
  351. best_idx[i] = off;
  352. expand_symbol(best_table[i], best_table_len[i], buf);
  353. printf("\t.asciz\t\"%s\"\n", buf);
  354. off += strlen(buf) + 1;
  355. }
  356. printf("\n");
  357. output_label("kallsyms_token_index");
  358. for (i = 0; i < 256; i++)
  359. printf("\t.short\t%d\n", best_idx[i]);
  360. printf("\n");
  361. }
  362. /* table lookup compression functions */
  363. /* count all the possible tokens in a symbol */
  364. static void learn_symbol(unsigned char *symbol, int len)
  365. {
  366. int i;
  367. for (i = 0; i < len - 1; i++)
  368. token_profit[ symbol[i] + (symbol[i + 1] << 8) ]++;
  369. }
  370. /* decrease the count for all the possible tokens in a symbol */
  371. static void forget_symbol(unsigned char *symbol, int len)
  372. {
  373. int i;
  374. for (i = 0; i < len - 1; i++)
  375. token_profit[ symbol[i] + (symbol[i + 1] << 8) ]--;
  376. }
  377. /* remove all the invalid symbols from the table and do the initial token count */
  378. static void build_initial_tok_table(void)
  379. {
  380. unsigned int i, pos;
  381. pos = 0;
  382. for (i = 0; i < table_cnt; i++) {
  383. if ( symbol_valid(&table[i]) ) {
  384. if (pos != i)
  385. table[pos] = table[i];
  386. learn_symbol(table[pos].sym, table[pos].len);
  387. pos++;
  388. }
  389. }
  390. table_cnt = pos;
  391. }
  392. static void *find_token(unsigned char *str, int len, unsigned char *token)
  393. {
  394. int i;
  395. for (i = 0; i < len - 1; i++) {
  396. if (str[i] == token[0] && str[i+1] == token[1])
  397. return &str[i];
  398. }
  399. return NULL;
  400. }
  401. /* replace a given token in all the valid symbols. Use the sampled symbols
  402. * to update the counts */
  403. static void compress_symbols(unsigned char *str, int idx)
  404. {
  405. unsigned int i, len, size;
  406. unsigned char *p1, *p2;
  407. for (i = 0; i < table_cnt; i++) {
  408. len = table[i].len;
  409. p1 = table[i].sym;
  410. /* find the token on the symbol */
  411. p2 = find_token(p1, len, str);
  412. if (!p2) continue;
  413. /* decrease the counts for this symbol's tokens */
  414. forget_symbol(table[i].sym, len);
  415. size = len;
  416. do {
  417. *p2 = idx;
  418. p2++;
  419. size -= (p2 - p1);
  420. memmove(p2, p2 + 1, size);
  421. p1 = p2;
  422. len--;
  423. if (size < 2) break;
  424. /* find the token on the symbol */
  425. p2 = find_token(p1, size, str);
  426. } while (p2);
  427. table[i].len = len;
  428. /* increase the counts for this symbol's new tokens */
  429. learn_symbol(table[i].sym, len);
  430. }
  431. }
  432. /* search the token with the maximum profit */
  433. static int find_best_token(void)
  434. {
  435. int i, best, bestprofit;
  436. bestprofit=-10000;
  437. best = 0;
  438. for (i = 0; i < 0x10000; i++) {
  439. if (token_profit[i] > bestprofit) {
  440. best = i;
  441. bestprofit = token_profit[i];
  442. }
  443. }
  444. return best;
  445. }
  446. /* this is the core of the algorithm: calculate the "best" table */
  447. static void optimize_result(void)
  448. {
  449. int i, best;
  450. /* using the '\0' symbol last allows compress_symbols to use standard
  451. * fast string functions */
  452. for (i = 255; i >= 0; i--) {
  453. /* if this table slot is empty (it is not used by an actual
  454. * original char code */
  455. if (!best_table_len[i]) {
  456. /* find the token with the breates profit value */
  457. best = find_best_token();
  458. if (token_profit[best] == 0)
  459. break;
  460. /* place it in the "best" table */
  461. best_table_len[i] = 2;
  462. best_table[i][0] = best & 0xFF;
  463. best_table[i][1] = (best >> 8) & 0xFF;
  464. /* replace this token in all the valid symbols */
  465. compress_symbols(best_table[i], i);
  466. }
  467. }
  468. }
  469. /* start by placing the symbols that are actually used on the table */
  470. static void insert_real_symbols_in_table(void)
  471. {
  472. unsigned int i, j, c;
  473. memset(best_table, 0, sizeof(best_table));
  474. memset(best_table_len, 0, sizeof(best_table_len));
  475. for (i = 0; i < table_cnt; i++) {
  476. for (j = 0; j < table[i].len; j++) {
  477. c = table[i].sym[j];
  478. best_table[c][0]=c;
  479. best_table_len[c]=1;
  480. }
  481. }
  482. }
  483. static void optimize_token_table(void)
  484. {
  485. build_initial_tok_table();
  486. insert_real_symbols_in_table();
  487. /* When valid symbol is not registered, exit to error */
  488. if (!table_cnt) {
  489. fprintf(stderr, "No valid symbol.\n");
  490. exit(1);
  491. }
  492. optimize_result();
  493. }
  494. /* guess for "linker script provide" symbol */
  495. static int may_be_linker_script_provide_symbol(const struct sym_entry *se)
  496. {
  497. const char *symbol = (char *)se->sym + 1;
  498. int len = se->len - 1;
  499. if (len < 8)
  500. return 0;
  501. if (symbol[0] != '_' || symbol[1] != '_')
  502. return 0;
  503. /* __start_XXXXX */
  504. if (!memcmp(symbol + 2, "start_", 6))
  505. return 1;
  506. /* __stop_XXXXX */
  507. if (!memcmp(symbol + 2, "stop_", 5))
  508. return 1;
  509. /* __end_XXXXX */
  510. if (!memcmp(symbol + 2, "end_", 4))
  511. return 1;
  512. /* __XXXXX_start */
  513. if (!memcmp(symbol + len - 6, "_start", 6))
  514. return 1;
  515. /* __XXXXX_end */
  516. if (!memcmp(symbol + len - 4, "_end", 4))
  517. return 1;
  518. return 0;
  519. }
  520. static int prefix_underscores_count(const char *str)
  521. {
  522. const char *tail = str;
  523. while (*tail == '_')
  524. tail++;
  525. return tail - str;
  526. }
  527. static int compare_symbols(const void *a, const void *b)
  528. {
  529. const struct sym_entry *sa;
  530. const struct sym_entry *sb;
  531. int wa, wb;
  532. sa = a;
  533. sb = b;
  534. /* sort by address first */
  535. if (sa->addr > sb->addr)
  536. return 1;
  537. if (sa->addr < sb->addr)
  538. return -1;
  539. /* sort by "weakness" type */
  540. wa = (sa->sym[0] == 'w') || (sa->sym[0] == 'W');
  541. wb = (sb->sym[0] == 'w') || (sb->sym[0] == 'W');
  542. if (wa != wb)
  543. return wa - wb;
  544. /* sort by "linker script provide" type */
  545. wa = may_be_linker_script_provide_symbol(sa);
  546. wb = may_be_linker_script_provide_symbol(sb);
  547. if (wa != wb)
  548. return wa - wb;
  549. /* sort by the number of prefix underscores */
  550. wa = prefix_underscores_count((const char *)sa->sym + 1);
  551. wb = prefix_underscores_count((const char *)sb->sym + 1);
  552. if (wa != wb)
  553. return wa - wb;
  554. /* sort by initial order, so that other symbols are left undisturbed */
  555. return sa->start_pos - sb->start_pos;
  556. }
  557. static void sort_symbols(void)
  558. {
  559. qsort(table, table_cnt, sizeof(struct sym_entry), compare_symbols);
  560. }
  561. static void make_percpus_absolute(void)
  562. {
  563. unsigned int i;
  564. for (i = 0; i < table_cnt; i++)
  565. if (symbol_in_range(&table[i], &percpu_range, 1)) {
  566. /*
  567. * Keep the 'A' override for percpu symbols to
  568. * ensure consistent behavior compared to older
  569. * versions of this tool.
  570. */
  571. table[i].sym[0] = 'A';
  572. table[i].percpu_absolute = 1;
  573. }
  574. }
  575. int main(int argc, char **argv)
  576. {
  577. if (argc >= 2) {
  578. int i;
  579. for (i = 1; i < argc; i++) {
  580. if(strcmp(argv[i], "--all-symbols") == 0)
  581. all_symbols = 1;
  582. else if (strcmp(argv[i], "--absolute-percpu") == 0)
  583. absolute_percpu = 1;
  584. else if (strncmp(argv[i], "--symbol-prefix=", 16) == 0) {
  585. char *p = &argv[i][16];
  586. /* skip quote */
  587. if ((*p == '"' && *(p+2) == '"') || (*p == '\'' && *(p+2) == '\''))
  588. p++;
  589. symbol_prefix_char = *p;
  590. } else if (strncmp(argv[i], "--page-offset=", 14) == 0) {
  591. const char *p = &argv[i][14];
  592. kernel_start_addr = strtoull(p, NULL, 16);
  593. } else
  594. usage();
  595. }
  596. } else if (argc != 1)
  597. usage();
  598. read_map(stdin);
  599. if (absolute_percpu)
  600. make_percpus_absolute();
  601. sort_symbols();
  602. optimize_token_table();
  603. write_src();
  604. return 0;
  605. }