We can stop iterating once we've found the DOF section.

Submitted by:	Fedor Indutny <fedor@indutny.com>
This commit is contained in:
Mark Johnston 2014-12-23 15:42:33 +00:00
parent 3f1cbdbeb1
commit 2f6cde8eb4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276144

View File

@ -171,6 +171,7 @@ dtrace_dof_init(void)
if (s != NULL && strcmp(s, ".SUNW_dof") == 0) {
dofdata = elf_getdata(scn, NULL);
dof = dofdata->d_buf;
break;
}
}
}