FreeCalypso > hg > freecalypso-reveng
comparison ticoff/symtab.c @ 118:193926ccd1ec
tiobjd: better handling of section-relative relocs
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 03 Apr 2014 07:47:03 +0000 |
parents | 5f4141ee175b |
children | fb1e47bebe00 |
comparison
equal
deleted
inserted
replaced
117:f9fde7f36ae3 | 118:193926ccd1ec |
---|---|
198 initial_fill_for_sort(sec); | 198 initial_fill_for_sort(sec); |
199 qsort(sec->sorted_symbols, sec->nsymbols, sizeof(void *), | 199 qsort(sec->sorted_symbols, sec->nsymbols, sizeof(void *), |
200 compare_for_sort); | 200 compare_for_sort); |
201 } | 201 } |
202 | 202 |
203 void | |
204 sort_symbols_of_all_sec() | |
205 { | |
206 unsigned n; | |
207 struct internal_scnhdr *sec; | |
208 | |
209 for (n = 0; n < nsections; n++) { | |
210 sec = sections + n; | |
211 if (!sec->nsymbols) | |
212 continue; | |
213 sort_symbols_of_sec(sec); | |
214 } | |
215 } | |
216 | |
203 cmd_nm() | 217 cmd_nm() |
204 { | 218 { |
205 unsigned n, m; | 219 unsigned n, m; |
206 struct internal_scnhdr *sec; | 220 struct internal_scnhdr *sec; |
207 struct internal_syment *sym; | 221 struct internal_syment *sym; |