unsubmitted-ldso-machine-mismatch
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 2 Oct 2022 17:46:25 +0000 (18:46 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 2 Oct 2022 17:46:25 +0000 (18:46 +0100)
Gbp-Pq: Topic any
Gbp-Pq: Name unsubmitted-ldso-machine-mismatch.diff

elf/dl-load.c

index d9ca5fabb0d5415a9d8f115a4f71505f2e9bc355..9ec5d825a37e9d8c03ce27a16be8680af2f95e00 100644 (file)
@@ -1712,6 +1712,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)