comparison objgrep/mkpattern.c @ 168:ed1a06bf525d

objgrep: works after fixing a buglet
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 04 Jul 2014 01:01:39 +0000
parents c25367bb7656
children 77cd647375e5
comparison
equal deleted inserted replaced
167:c25367bb7656 168:ed1a06bf525d
123 exit(2); 123 exit(2);
124 } 124 }
125 if (!sym) { 125 if (!sym) {
126 irel->secbase = grep_section; 126 irel->secbase = grep_section;
127 irel->extsym = 0; 127 irel->extsym = 0;
128 } else if (sym->class == C_EXT && !sym->scnum == 0) { 128 } else if (sym->class == C_EXT && sym->scnum == 0) {
129 irel->extsym = sym; 129 irel->extsym = sym;
130 irel->secbase = 0; 130 irel->secbase = 0;
131 } else if (sym->class == C_STAT && sym->section && 131 } else if (sym->class == C_STAT && sym->section &&
132 !strcmp(sym->name, sym->section->name)) { 132 !strcmp(sym->name, sym->section->name)) {
133 irel->secbase = sym->section; 133 irel->secbase = sym->section;