mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
kldxref: Don't warn and skip file if no relocations are found
This case is hit for the kernel itself on riscv64, and did not used to
be checked. Since the code here can already handle missing Elf_Rel
and/or Elf_Rela just delete the check.
Reviewed by: jhb, imp
Fixes: 0299afdff1
("kldxref: Make use of libelf to be a portable cross tool")
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D46517
This commit is contained in:
parent
b9c5eab0f3
commit
05996f453d
@ -364,11 +364,6 @@ ef_parse_dynamic(elf_file_t ef, const GElf_Phdr *phdyn)
|
||||
error = EFTYPE;
|
||||
goto out;
|
||||
}
|
||||
if (rel_off == 0 && rela_off == 0) {
|
||||
warnx("%s: no ELF relocation table found\n", ef->ef_name);
|
||||
error = EFTYPE;
|
||||
goto out;
|
||||
}
|
||||
|
||||
nsym = 0;
|
||||
for (i = 0; i < nshdr; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user