/[gcl]/gcl/unixport/rsym_elf.c
ViewVC logotype

Diff of /gcl/unixport/rsym_elf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by camm, Fri Feb 1 20:35:58 2002 UTC revision 1.6 by camm, Sun Feb 3 18:44:08 2002 UTC
# Line 30  to compile use cc rsym.c -o rsym  -I../h Line 30  to compile use cc rsym.c -o rsym  -I../h
30  Elf32_Phdr pheader;  Elf32_Phdr pheader;
31  Elf32_Ehdr eheader;  Elf32_Ehdr eheader;
32  Elf32_Sym *symbol_table;  Elf32_Sym *symbol_table;
33  int text_index,data_index,bss_index;  int text_index,data_index,bss_index,sbss_index;
34  #undef SYM_NAME  #undef SYM_NAME
35  #undef EXT_and_TEXT_BSS_DAT  #undef EXT_and_TEXT_BSS_DAT
36    
# Line 175  char *filename; Line 175  char *filename;
175          my_string_table = get_section(fp,".strtab");          my_string_table = get_section(fp,".strtab");
176          text_index = get_section_number(".text");          text_index = get_section_number(".text");
177          bss_index = get_section_number(".bss");          bss_index = get_section_number(".bss");
178            sbss_index = get_section_number(".sbss");
179          data_index = get_section_number(".data");          data_index = get_section_number(".data");
180                    
181          fclose(fp);          fclose(fp);
# Line 189  struct lsymbol_table tab; Line 190  struct lsymbol_table tab;
190                                   (p->st_shndx == text_index \                                   (p->st_shndx == text_index \
191                                    || p->st_shndx == data_index\                                    || p->st_shndx == data_index\
192                                    || p->st_shndx == bss_index \                                    || p->st_shndx == bss_index \
193                                      || p->st_shndx == sbss_index \
194                                    || p->st_shndx == SHN_UNDEF \                                    || p->st_shndx == SHN_UNDEF \
195                                    ))                                    ))
196  #define SYM_NAME(p) my_string_table+(p->st_name)  #define SYM_NAME(p) my_string_table+(p->st_name)
# Line 234  char *out; Line 236  char *out;
236  /*         && tmp[2]=='G' */  /*         && tmp[2]=='G' */
237  /*         && tmp[3]=='L' */  /*         && tmp[3]=='L' */
238  /*         && tmp[4]=='I' */  /*         && tmp[4]=='I' */
239             )             )
240           *tmp=0;                 *tmp=0;      
241       }       }
242    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26