projects
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db331bd
)
unsubmitted-ldso-machine-mismatch
author
GNU Libc Maintainers
<debian-glibc@lists.debian.org>
Tue, 15 Mar 2022 22:48:49 +0000
(22:48 +0000)
committer
Aurelien Jarno
<aurel32@debian.org>
Tue, 15 Mar 2022 22:48:49 +0000
(22:48 +0000)
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 78a698641f78fc137bd7dd5d70d495a7cbbacb27..fe12fc240e54b1bc2cea6c496e2338d3f54c2a2c 100644
(file)
--- a/
elf/dl-load.c
+++ b/
elf/dl-load.c
@@
-1813,6
+1813,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)