unsubmitted-ldso-multilib
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 17 May 2025 15:15:43 +0000 (17:15 +0200)
committerAurelien Jarno <aurel32@debian.org>
Sat, 17 May 2025 15:15:43 +0000 (17:15 +0200)
Gbp-Pq: Topic arm
Gbp-Pq: Name unsubmitted-ldso-multilib.diff

elf/dl-load.c

index 945dd8a231dfdab7109dc0261216a18df8682fa0..c7139246ba7e8f4156ca56b625b009a9162259f5 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)