FreeCalypso > hg > freecalypso-reveng
comparison ticoff/tables.c @ 116:5f4141ee175b
tiobjd: retain the original symtab order for symbols at the same position
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 03 Apr 2014 07:00:08 +0000 |
parents | e650fdc743fe |
children | 2c6b1319383b |
comparison
equal
deleted
inserted
replaced
115:2f23301d2f86 | 116:5f4141ee175b |
---|---|
96 if (!in) { | 96 if (!in) { |
97 perror("malloc"); | 97 perror("malloc"); |
98 exit(1); | 98 exit(1); |
99 } | 99 } |
100 symtab[n] = in; | 100 symtab[n] = in; |
101 in->number = n; | |
101 in->name = get_secorsym_name(symtab_raw[n].e_name); | 102 in->name = get_secorsym_name(symtab_raw[n].e_name); |
102 in->value = get_u32(symtab_raw[n].e_value); | 103 in->value = get_u32(symtab_raw[n].e_value); |
103 in->scnum = get_s16(symtab_raw[n].e_scnum); | 104 in->scnum = get_s16(symtab_raw[n].e_scnum); |
104 if (in->scnum > 0) { | 105 if (in->scnum > 0) { |
105 if (in->scnum > nsections) { | 106 if (in->scnum > nsections) { |