RISC-V: Add RV32E support.
[deliverable/binutils-gdb.git] / bfd / elfnn-riscv.c
index b17c0e10007d4bcd1d3314db46523834e4c431be..b82e655b7be5f0363be32a1ba7a995febdeda168 100644 (file)
@@ -2625,6 +2625,14 @@ _bfd_riscv_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
       goto fail;
     }
 
+  /* Disallow linking RVE and non-RVE.  */
+  if ((old_flags ^ new_flags) & EF_RISCV_RVE)
+    {
+      (*_bfd_error_handler)
+       (_("%pB: can't link RVE with other target"), ibfd);
+      goto fail;
+    }
+
   /* Allow linking RVC and non-RVC, and keep the RVC flag.  */
   elf_elfheader (obfd)->e_flags |= new_flags & EF_RISCV_RVC;
 
This page took 0.025805 seconds and 4 git commands to generate.