Re-work RISC-V gas flags: now we just support -mabi and -march
[external/binutils.git] / bfd / elfnn-riscv.c
index a9b0ac6..7f3ca72 100644 (file)
@@ -2597,8 +2597,8 @@ _bfd_riscv_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
       return TRUE;
     }
 
-  /* Disallow linking soft-float and hard-float.  */
-  if ((old_flags ^ new_flags) & EF_RISCV_SOFT_FLOAT)
+  /* Disallow linking different float ABIs.  */
+  if ((old_flags ^ new_flags) & EF_RISCV_FLOAT_ABI)
     {
       (*_bfd_error_handler)
        (_("%B: can't link hard-float modules with soft-float modules"), ibfd);