comparison objgrep/main.c @ 173:77cd647375e5

objgrep -r: dump symbols in other sections recovered through relocs
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 04 Jul 2014 06:34:33 +0000
parents 452baa748747
children
comparison
equal deleted inserted replaced
172:452baa748747 173:77cd647375e5
66 } 66 }
67 printf("%s:%s found in %s at 0x%x\n", objfilename, grep_section->name, 67 printf("%s:%s found in %s at 0x%x\n", objfilename, grep_section->name,
68 binfilename, match_offset); 68 binfilename, match_offset);
69 if (sflag) 69 if (sflag)
70 dump_symtab_on_match(); 70 dump_symtab_on_match();
71 if (rflag && grep_section->nreloc) 71 if (rflag && grep_section->nreloc) {
72 dump_relocs_on_match(); 72 process_relocs_on_match();
73 if (nreloc_ext)
74 dump_ext_relocs_on_match();
75 if (nreloc_int)
76 dump_reloc_symtab_on_match();
77 }
73 exit(0); 78 exit(0);
74 } 79 }