mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
ANDROID: x86, module: Ignore __typeid__ relocations
Also ignore these relocations when loading modules. Bug: 145210207 Change-Id: I53c8ed4811fee4b770fc5824376fef657ab47bdf Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
committed by
Alistair Delva
parent
da6465aa09
commit
cdf744be2b
@@ -196,6 +196,10 @@ static int __apply_relocate_add(Elf64_Shdr *sechdrs,
|
||||
val -= (u64)loc;
|
||||
write(loc, &val, 8);
|
||||
break;
|
||||
case R_X86_64_8:
|
||||
if (!strncmp(strtab + sym->st_name, "__typeid__", 10))
|
||||
break;
|
||||
/* fallthrough */
|
||||
default:
|
||||
pr_err("%s: Unknown rela relocation: %llu\n",
|
||||
me->name, ELF64_R_TYPE(rel[i].r_info));
|
||||
|
||||
Reference in New Issue
Block a user