version 1.3, 2004/03/30 15:12:38 |
version 1.4, 2004/03/30 15:29:44 |
|
|
else |
else |
sn = ""; |
sn = ""; |
|
|
/* printf("%s 0x%x %s(0x%x)\n", stab + sym->st_name, sym->st_info, sn, sym->st_shndx); */ |
|
switch(ELF_ST_TYPE(sym->st_info)) { |
switch(ELF_ST_TYPE(sym->st_info)) { |
case STT_NOTYPE: |
case STT_NOTYPE: |
switch (sym->st_shndx) { |
switch (sym->st_shndx) { |
|
|
np->n_type = N_COMM; |
np->n_type = N_COMM; |
else if (sym->st_shndx >= eh->e_shnum) |
else if (sym->st_shndx >= eh->e_shnum) |
break; |
break; |
else if (!strcmp(sn, ELF_BSS)) |
else if (!strcmp(sn, ELF_SBSS)) |
np->n_type = N_BSS; |
np->n_type = N_BSS; |
|
else if (!strcmp(sn, ELF_BSS)) |
|
np->n_type = N_BSS | N_EXT; |
else if (!strcmp(sn, ELF_RODATA)) |
else if (!strcmp(sn, ELF_RODATA)) |
np->n_other = 'r'; |
np->n_other = 'r'; |
break; |
break; |