diff objgrep/mkpattern.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 ed1a06bf525d
children
line wrap: on
line diff
--- a/objgrep/mkpattern.c	Fri Jul 04 03:22:41 2014 +0000
+++ b/objgrep/mkpattern.c	Fri Jul 04 06:34:33 2014 +0000
@@ -125,13 +125,16 @@
 		if (!sym) {
 			irel->secbase = grep_section;
 			irel->extsym = 0;
+			nreloc_int++;
 		} else if (sym->class == C_EXT && sym->scnum == 0) {
 			irel->extsym = sym;
 			irel->secbase = 0;
+			nreloc_ext++;
 		} else if (sym->class == C_STAT && sym->section &&
 			   !strcmp(sym->name, sym->section->name)) {
 			irel->secbase = sym->section;
 			irel->extsym = 0;
+			nreloc_int++;
 		} else {
 			fprintf(stderr, "error: unable to grok reloc\n");
 			exit(2);