[BACK]Return to elf.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / nm

Diff for /src/usr.bin/nm/elf.c between version 1.3 and 1.4

version 1.3, 2004/03/30 15:12:38 version 1.4, 2004/03/30 15:29:44
Line 157 
Line 157 
         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) {
Line 209 
Line 208 
                         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;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4