[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.2 and 1.3

version 1.2, 2004/01/13 17:32:32 version 1.3, 2004/03/30 15:12:38
Line 53 
Line 53 
 #error "Unsupported ELF class"  #error "Unsupported ELF class"
 #endif  #endif
   
   #define ELF_SBSS        ".sbss"
   
 int  int
 elf_fix_header(Elf_Ehdr *eh)  elf_fix_header(Elf_Ehdr *eh)
 {  {
Line 179 
Line 181 
                         } else if (!strcmp(sn, ELF_DATA))                          } else if (!strcmp(sn, ELF_DATA))
                                 np->n_type = N_DATA;                                  np->n_type = N_DATA;
                         else if (!strcmp(sn, ELF_BSS))                          else if (!strcmp(sn, ELF_BSS))
                                   np->n_type = N_BSS | N_EXT;
                           else if (!strcmp(sn, ELF_SBSS))
                                 np->n_type = N_BSS;                                  np->n_type = N_BSS;
                         else                          else
                                 np->n_other = '?';                                  np->n_other = '?';

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