mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
ANDROID: x86, module: Ignore __typeid__ relocations
Also ignore these relocations when loading modules. Bug: 145297900 Change-Id: I3d00f93deb3cf370ce25f8672f90e410e87ab79e Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
parent
98085b17b5
commit
9c7e38690d
1 changed files with 4 additions and 0 deletions
|
|
@ -195,6 +195,10 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
|
|||
val -= (u64)loc;
|
||||
*(u64 *)loc = val;
|
||||
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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue