FreeCalypso > hg > freecalypso-reveng
comparison ticoff/tables.c @ 74:2eef88395908
tiobjd: a little refactoring
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 25 Mar 2014 18:55:36 +0000 |
parents | 10f3fbff5e97 |
children | 1a23ff9a81de |
comparison
equal
deleted
inserted
replaced
73:10f3fbff5e97 | 74:2eef88395908 |
---|---|
76 "warning: section #%u (%s): some nonzero value in s_page bytes\n", | 76 "warning: section #%u (%s): some nonzero value in s_page bytes\n", |
77 n, sections[n].name); | 77 n, sections[n].name); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 cmd_sechdr() | |
82 { | |
83 unsigned n; | |
84 struct internal_scnhdr *inf; | |
85 | |
86 get_int_section_table(); | |
87 for (n = 0; n < nsections; n++) { | |
88 inf = sections + n; | |
89 printf("#%d: %s size=%u, flags=0x%x\n", n, inf->name, | |
90 inf->size, inf->flags); | |
91 printf("\t%u reloc, %u line entries\n", | |
92 inf->nreloc, inf->nlineent); | |
93 } | |
94 exit(0); | |
95 } | |
96 | |
97 get_int_symbol_table() | 81 get_int_symbol_table() |
98 { | 82 { |
99 unsigned n; | 83 unsigned n; |
100 struct internal_syment *in; | 84 struct internal_syment *in; |
101 | 85 |