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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276144
@ -171,6 +171,7 @@ dtrace_dof_init(void)
|
|||||||
if (s != NULL && strcmp(s, ".SUNW_dof") == 0) {
|
if (s != NULL && strcmp(s, ".SUNW_dof") == 0) {
|
||||||
dofdata = elf_getdata(scn, NULL);
|
dofdata = elf_getdata(scn, NULL);
|
||||||
dof = dofdata->d_buf;
|
dof = dofdata->d_buf;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user