mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
kldxref: Fix for 32-bit powerpc
R_PPC_RELATIVE lost its 32-bit handling in the libelf conversion.
Reported by: bapt
Fixes: 0299afdff1 ("kldxref: Make use of libelf to be a portable cross tool")
This commit is contained in:
parent
3850927066
commit
d1ce87ae0d
1 changed files with 2 additions and 1 deletions
|
|
@ -69,7 +69,8 @@ ef_ppc_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype,
|
|||
le64enc(where, val);
|
||||
else
|
||||
be64enc(where, val);
|
||||
}
|
||||
} else
|
||||
be32enc(where, val);
|
||||
break;
|
||||
case R_PPC_ADDR32: /* word32 S + A */
|
||||
val = EF_SYMADDR(ef, symidx) + addend;
|
||||
|
|
|
|||
Loading…
Reference in a new issue