unsubmitted-ldso-multilib
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 13 Apr 2025 19:40:49 +0000 (21:40 +0200)
committerAurelien Jarno <aurel32@debian.org>
Sun, 13 Apr 2025 19:40:49 +0000 (21:40 +0200)
Gbp-Pq: Topic arm
Gbp-Pq: Name unsubmitted-ldso-multilib.diff

elf/dl-load.c

index f905578a6592c8ccb40b83b492fc1d2257ce5490..e4e7675ab48529bb15eda31c8ca06b6f60b18bc0 100644 (file)
@@ -1647,6 +1647,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)