Cast away a clang alignment warning in drti.c's fixsymbol() function.
This code only runs on i386 and amd64, so there should be no problems if buf + sec->dofs_offset is not aligned (which is unlikely anyway). MFC after: 1 week
This commit is contained in:
parent
e2325c4ac9
commit
a2f16036af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228547
@ -102,7 +102,7 @@ fixsymbol(Elf *e, Elf_Data *data, size_t idx, int nprobes, char *buf,
|
||||
int ndx;
|
||||
|
||||
while (gelf_getsym(data, j++, &sym) != NULL) {
|
||||
prb = (dof_probe_t *)(buf + sec->dofs_offset);
|
||||
prb = (dof_probe_t *)(void *)(buf + sec->dofs_offset);
|
||||
|
||||
for (ndx = nprobes; ndx; ndx--, prb += 1) {
|
||||
funcname = dofstrtab + prb->dofpr_func;
|
||||
|
Loading…
Reference in New Issue
Block a user