unsubmitted-ldso-machine-mismatch
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 30 Apr 2025 01:01:35 +0000 (09:01 +0800)
committerSean Whitton <spwhitton@spwhitton.name>
Wed, 30 Apr 2025 01:01:35 +0000 (09:01 +0800)
Gbp-Pq: Topic any
Gbp-Pq: Name unsubmitted-ldso-machine-mismatch.diff

elf/dl-load.c

index 020fce0cc134ab3ee92f7cb3143d49256b41fc56..581e5d573de6077286f916bf013893a2483d96a3 100644 (file)
@@ -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)