unsubmitted-ldso-machine-mismatch
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 5 Dec 2018 18:50:21 +0000 (18:50 +0000)
committerAurelien Jarno <aurel32@debian.org>
Wed, 5 Dec 2018 18:50:21 +0000 (18:50 +0000)
Gbp-Pq: Topic any
Gbp-Pq: Name unsubmitted-ldso-machine-mismatch.diff

elf/dl-load.c

index 45702fa1536101f8072d3d65f0b4e62899674d3c..0448748c46886fb155d47234160801003e1e814f 100644 (file)
@@ -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)