mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 21:40:12 +00:00
aarch64: rtld: avoid loading incompatible binaries
Prevent lp64 ld.so loading purecap binaries.
This commit is contained in:
parent
392f32c841
commit
6f93421a5f
@ -36,7 +36,8 @@
|
||||
static inline int __attribute__ ((unused))
|
||||
elf_machine_matches_host (const ElfW(Ehdr) *ehdr)
|
||||
{
|
||||
return ehdr->e_machine == EM_AARCH64;
|
||||
return ehdr->e_machine == EM_AARCH64
|
||||
&& (ehdr->e_flags & EF_AARCH64_CHERI_PURECAP) == 0;
|
||||
}
|
||||
|
||||
/* Return the run-time load address of the shared object. */
|
||||
|
Loading…
Reference in New Issue
Block a user