unsubmitted-ldso-machine-mismatch
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 16 Aug 2022 21:35:10 +0000 (22:35 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 16 Aug 2022 21:35:10 +0000 (22:35 +0100)
Gbp-Pq: Topic any
Gbp-Pq: Name unsubmitted-ldso-machine-mismatch.diff

elf/dl-load.c

index 85b7783a0a10270f179b8fae6ed0d1948aaa6525..739281b0511dde3e23c8ff7edae8cd9530c27281 100644 (file)
@@ -1704,6 +1704,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)