unsubmitted-ldso-multilib
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 24 Sep 2024 19:46:16 +0000 (21:46 +0200)
committerAurelien Jarno <aurel32@debian.org>
Tue, 24 Sep 2024 19:46:16 +0000 (21:46 +0200)
Gbp-Pq: Topic arm
Gbp-Pq: Name unsubmitted-ldso-multilib.diff

elf/dl-load.c

index 8a89b71016d426796e602b60555696649871c6ae..dfb4b7d031f93a9dcc8312e1469fb568ef0ebf93 100644 (file)
@@ -1655,6 +1655,17 @@ open_verify (const char *name, int fd,
              __set_errno (ENOENT);
              return -1;
            }
+#ifdef __arm__
+          else if (!VALID_FLOAT_ABI (ehdr->e_flags))
+           {
+             /* This is not a fatal error.  On architectures where
+                soft-float and hard-float binaries can be run this
+                might happen.  */
+             __close_nocancel (fd);
+             __set_errno (ENOENT);
+             return -1;
+           }
+#endif
          else if (ehdr->e_ident[EI_DATA] != byteorder)
            {
              if (BYTE_ORDER == BIG_ENDIAN)