unsubmitted-ldso-machine-mismatch
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
Gbp-Pq: Topic any
Gbp-Pq: Name unsubmitted-ldso-machine-mismatch.diff

elf/dl-load.c

index 48454d99537eb5548e90ccc01a782efc17ed9b73..7f1323b46a5dd244e96798d8302626919c9dba7f 100644 (file)
@@ -1803,6 +1803,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)