We can stop iterating once we've found the DOF section.
Submitted by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
3f1cbdbeb1
commit
2f6cde8eb4
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user