FreeCalypso > hg > freecalypso-reveng
comparison leo-obj/tool/disasm.c @ 148:13cc7e19ecec
tiobjd disasm -g: support -b as well
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 29 Apr 2014 06:45:45 +0000 |
parents | 1e1815a6d701 |
children | df01a4f4c272 |
comparison
equal
deleted
inserted
replaced
147:1e1815a6d701 | 148:13cc7e19ecec |
---|---|
14 extern unsigned get_u16(), get_u32(); | 14 extern unsigned get_u16(), get_u32(); |
15 extern char *storage_class_to_string(); | 15 extern char *storage_class_to_string(); |
16 | 16 |
17 int auto_xlat_section_relocs = 1; | 17 int auto_xlat_section_relocs = 1; |
18 int disasm_richsym; | 18 int disasm_richsym; |
19 extern int richsym_print_bitsize; | |
19 | 20 |
20 static void | 21 static void |
21 find_better_symbol(sec, symp, addp) | 22 find_better_symbol(sec, symp, addp) |
22 struct internal_scnhdr *sec; | 23 struct internal_scnhdr *sec; |
23 struct internal_syment **symp; | 24 struct internal_syment **symp; |
408 char *hintsfile = 0; | 409 char *hintsfile = 0; |
409 struct internal_scnhdr *sec; | 410 struct internal_scnhdr *sec; |
410 unsigned secnum; | 411 unsigned secnum; |
411 int c; | 412 int c; |
412 | 413 |
413 while ((c = getopt(argc, argv, "gh:s")) != EOF) | 414 while ((c = getopt(argc, argv, "bgh:s")) != EOF) |
414 switch (c) { | 415 switch (c) { |
416 case 'b': | |
417 richsym_print_bitsize++; | |
418 continue; | |
415 case 'g': | 419 case 'g': |
416 disasm_richsym++; | 420 disasm_richsym++; |
417 continue; | 421 continue; |
418 case 'h': | 422 case 'h': |
419 hintsfile = optarg; | 423 hintsfile = optarg; |