projects
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91c2001
)
unsubmitted-ldso-machine-mismatch
author
GNU Libc Maintainers
<debian-glibc@lists.debian.org>
Sat, 28 Aug 2021 19:29:36 +0000
(20:29 +0100)
committer
Raspbian forward porter
<root@raspbian.org>
Sat, 28 Aug 2021 19:29:36 +0000
(20:29 +0100)
Gbp-Pq: Topic any
Gbp-Pq: Name unsubmitted-ldso-machine-mismatch.diff
elf/dl-load.c
patch
|
blob
|
history
diff --git
a/elf/dl-load.c
b/elf/dl-load.c
index b742071e5be768c6d1855d70ab8680ca4ba3f0ab..cd5aa4d3c0b33c00236fc96ea8ae88a934bf175b 100644
(file)
--- a/
elf/dl-load.c
+++ b/
elf/dl-load.c
@@
-1621,6
+1621,12
@@
open_verify (const char *name, int fd,
goto close_and_out;
}
#endif
+ else if (! __builtin_expect (elf_machine_matches_host (ehdr), 1))
+ {
+ /* Another non-fatal error, let's skip right past the
+ the libraries obviously built for other machines. */
+ goto close_and_out;
+ }
else if (ehdr->e_ident[EI_DATA] != byteorder)
{
if (BYTE_ORDER == BIG_ENDIAN)